mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-13 19:12:32 +01:00
Peep pathfinding asserts (#3340)
This commit is contained in:
committed by
Ted John
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);
|
sprite_move(x, y, z, (rct_sprite*)peep);
|
||||||
invalidate_sprite_2((rct_sprite*)peep);
|
invalidate_sprite_2((rct_sprite*)peep);
|
||||||
|
|
||||||
|
assert(peep->current_ride_station < 4);
|
||||||
x = ride->exits[peep->current_ride_station] & 0xFF;
|
x = ride->exits[peep->current_ride_station] & 0xFF;
|
||||||
y = ride->exits[peep->current_ride_station] >> 8;
|
y = ride->exits[peep->current_ride_station] >> 8;
|
||||||
x *= 32;
|
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)){
|
if (!(vehicle_entry->flags_b & VEHICLE_ENTRY_FLAG_B_10)){
|
||||||
sint16 x, y, z;
|
sint16 x, y, z;
|
||||||
|
assert(peep->current_ride_station < 4);
|
||||||
x = ride->exits[peep->current_ride_station] & 0xFF;
|
x = ride->exits[peep->current_ride_station] & 0xFF;
|
||||||
y = ride->exits[peep->current_ride_station] >> 8;
|
y = ride->exits[peep->current_ride_station] >> 8;
|
||||||
z = ride->station_heights[peep->current_ride_station];
|
z = ride->station_heights[peep->current_ride_station];
|
||||||
|
|||||||
Reference in New Issue
Block a user