mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-25 07:44:38 +01:00
@@ -990,7 +990,7 @@ void ride_remove_peeps(int rideIndex)
|
||||
exitZ = ride->station_heights[stationIndex];
|
||||
mapElement = ride_get_station_exit_element(ride, exitX, exitY, exitZ);
|
||||
|
||||
exitDirection = mapElement->type & 3;
|
||||
exitDirection = (mapElement == NULL ? 0 : mapElement->type & MAP_ELEMENT_DIRECTION_MASK);
|
||||
exitX = (exitX * 32) - (RCT2_ADDRESS(0x00981D6C, sint16)[exitDirection * 2] * 20) + 16;
|
||||
exitY = (exitY * 32) - (RCT2_ADDRESS(0x00981D6E, sint16)[exitDirection * 2] * 20) + 16;
|
||||
exitZ = (exitZ * 8) + 2;
|
||||
|
||||
Reference in New Issue
Block a user