1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Fix #2701. Rotated trains no longer disobey physics when crashing.

This commit is contained in:
duncanspumpkin
2016-01-12 17:32:16 +00:00
parent e2e749d644
commit b5b6e93a03

View File

@@ -2553,8 +2553,8 @@ static void vehicle_update_crash_setup(rct_vehicle* vehicle) {
lastVehicle = trainVehicle;
trainVehicle->sub_state = 0;
int x = RCT2_ADDRESS(0x009A3AC4, sint16)[trainVehicle->sprite_direction * 2];
int y = RCT2_ADDRESS(0x009A3AC6, sint16)[trainVehicle->sprite_direction * 2];
int x = RCT2_ADDRESS(0x009A3AC4, sint16)[trainVehicle->sprite_direction & 0xFE];
int y = RCT2_ADDRESS(0x009A3AC6, sint16)[trainVehicle->sprite_direction & 0xFE];
int ecx = RCT2_ADDRESS(0x009A37E4, uint32)[trainVehicle->var_1F] >> 15;
x *= ecx;