mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #2701. Rotated trains no longer disobey physics when crashing.
This commit is contained in:
parent
e2e749d644
commit
b5b6e93a03
|
@ -2553,8 +2553,8 @@ static void vehicle_update_crash_setup(rct_vehicle* vehicle) {
|
||||||
lastVehicle = trainVehicle;
|
lastVehicle = trainVehicle;
|
||||||
|
|
||||||
trainVehicle->sub_state = 0;
|
trainVehicle->sub_state = 0;
|
||||||
int x = RCT2_ADDRESS(0x009A3AC4, sint16)[trainVehicle->sprite_direction * 2];
|
int x = RCT2_ADDRESS(0x009A3AC4, sint16)[trainVehicle->sprite_direction & 0xFE];
|
||||||
int y = RCT2_ADDRESS(0x009A3AC6, sint16)[trainVehicle->sprite_direction * 2];
|
int y = RCT2_ADDRESS(0x009A3AC6, sint16)[trainVehicle->sprite_direction & 0xFE];
|
||||||
|
|
||||||
int ecx = RCT2_ADDRESS(0x009A37E4, uint32)[trainVehicle->var_1F] >> 15;
|
int ecx = RCT2_ADDRESS(0x009A37E4, uint32)[trainVehicle->var_1F] >> 15;
|
||||||
x *= ecx;
|
x *= ecx;
|
||||||
|
|
Loading…
Reference in New Issue