Reload vehicleEntry on change in car to fix special trains.

You can have different flags set for different train cars
This commit is contained in:
duncanspumpkin 2016-02-14 19:52:35 +00:00
parent b11fbe9ab1
commit cd2d14fcec
1 changed files with 2 additions and 0 deletions

View File

@ -8004,6 +8004,8 @@ int vehicle_update_track_motion(rct_vehicle *vehicle, int *outStation)
uint16 spriteId = vehicle->sprite_index;
for (rct_vehicle* car = vehicle; spriteId != 0xFFFF; car = GET_VEHICLE(spriteId)) {
vehicleEntry = vehicle_get_vehicle_entry(car);
// Swinging cars
if (vehicleEntry->flags_b & VEHICLE_ENTRY_FLAG_B_SWINGING) {
vehicle_update_swinging_car(car);