mirror of https://github.com/OpenRCT2/OpenRCT2.git
Peep pathfinding asserts (#3340)
This commit is contained in:
parent
3c7499f370
commit
c49f27dcab
|
@ -2803,6 +2803,7 @@ static void peep_go_to_ride_exit(rct_peep* peep, rct_ride* ride, sint16 x, sint1
|
|||
sprite_move(x, y, z, (rct_sprite*)peep);
|
||||
invalidate_sprite_2((rct_sprite*)peep);
|
||||
|
||||
assert(peep->current_ride_station < 4);
|
||||
x = ride->exits[peep->current_ride_station] & 0xFF;
|
||||
y = ride->exits[peep->current_ride_station] >> 8;
|
||||
x *= 32;
|
||||
|
@ -3126,6 +3127,7 @@ static void peep_update_ride_sub_state_7(rct_peep* peep){
|
|||
|
||||
if (!(vehicle_entry->flags_b & VEHICLE_ENTRY_FLAG_B_10)){
|
||||
sint16 x, y, z;
|
||||
assert(peep->current_ride_station < 4);
|
||||
x = ride->exits[peep->current_ride_station] & 0xFF;
|
||||
y = ride->exits[peep->current_ride_station] >> 8;
|
||||
z = ride->station_heights[peep->current_ride_station];
|
||||
|
|
Loading…
Reference in New Issue