mirror of https://github.com/OpenRCT2/OpenRCT2.git
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:
parent
b11fbe9ab1
commit
cd2d14fcec
|
@ -8004,6 +8004,8 @@ int vehicle_update_track_motion(rct_vehicle *vehicle, int *outStation)
|
||||||
|
|
||||||
uint16 spriteId = vehicle->sprite_index;
|
uint16 spriteId = vehicle->sprite_index;
|
||||||
for (rct_vehicle* car = vehicle; spriteId != 0xFFFF; car = GET_VEHICLE(spriteId)) {
|
for (rct_vehicle* car = vehicle; spriteId != 0xFFFF; car = GET_VEHICLE(spriteId)) {
|
||||||
|
vehicleEntry = vehicle_get_vehicle_entry(car);
|
||||||
|
|
||||||
// Swinging cars
|
// Swinging cars
|
||||||
if (vehicleEntry->flags_b & VEHICLE_ENTRY_FLAG_B_SWINGING) {
|
if (vehicleEntry->flags_b & VEHICLE_ENTRY_FLAG_B_SWINGING) {
|
||||||
vehicle_update_swinging_car(car);
|
vehicle_update_swinging_car(car);
|
||||||
|
|
Loading…
Reference in New Issue