mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 08:12:53 +01:00
Merge pull request #2593 from xiane/develop
Applied enum value to ride type flags.
This commit is contained in:
@@ -556,13 +556,13 @@ static void sub_68F41A(rct_peep *peep, int index)
|
||||
|
||||
switch (chosen_thought){
|
||||
case PEEP_THOUGHT_TYPE_HUNGRY:
|
||||
peep_head_for_nearest_ride_with_flags(peep, 0x00800000);
|
||||
peep_head_for_nearest_ride_with_flags(peep, RIDE_TYPE_FLAG_SELLS_FOOD);
|
||||
break;
|
||||
case PEEP_THOUGHT_TYPE_THIRSTY:
|
||||
peep_head_for_nearest_ride_with_flags(peep, 0x01000000);
|
||||
peep_head_for_nearest_ride_with_flags(peep, RIDE_TYPE_FLAG_SELLS_DRINKS);
|
||||
break;
|
||||
case PEEP_THOUGHT_TYPE_BATHROOM:
|
||||
peep_head_for_nearest_ride_with_flags(peep, 0x00200000);
|
||||
peep_head_for_nearest_ride_with_flags(peep, RIDE_TYPE_FLAG_IS_BATHROOM);
|
||||
break;
|
||||
case PEEP_THOUGHT_RUNNING_OUT:
|
||||
peep_head_for_nearest_ride_type(peep, RIDE_TYPE_CASH_MACHINE);
|
||||
@@ -9053,12 +9053,12 @@ static void peep_head_for_nearest_ride_with_flags(rct_peep *peep, int rideTypeFl
|
||||
if (peep->x == (sint16)0x8000) return;
|
||||
if (peep->guest_heading_to_ride_id != 255) {
|
||||
ride = GET_RIDE(peep->guest_heading_to_ride_id);
|
||||
if (RCT2_ADDRESS(RCT2_ADDRESS_RIDE_FLAGS, uint32)[ride->type * 2] & 0x03800000) {
|
||||
if (RCT2_ADDRESS(RCT2_ADDRESS_RIDE_FLAGS, uint32)[ride->type * 2] & (RIDE_TYPE_FLAG_IS_BATHROOM | RIDE_TYPE_FLAG_SELLS_DRINKS | RIDE_TYPE_FLAG_SELLS_FOOD)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if ((rideTypeFlags & 0x002000000) && peep_has_food(peep)) {
|
||||
if ((rideTypeFlags & RIDE_TYPE_FLAG_IS_BATHROOM) && peep_has_food(peep)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user