Peep pathfinding asserts (#3340)

This commit is contained in:
Michał Janiszewski 2017-06-06 09:25:52 +02:00 committed by Ted John
parent 3c7499f370
commit c49f27dcab
1 changed files with 2 additions and 0 deletions

View File

@ -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];