Add: [NewGRF] Variable for when a train is driving backwards

This commit is contained in:
Tyler Trahan
2026-03-18 16:31:38 -04:00
parent 631d6ba641
commit 9494881e14
+1
View File
@@ -744,6 +744,7 @@ static uint32_t VehicleGetVariable(Vehicle *v, const VehicleScopeResolver *objec
}
if (v->vehicle_flags.Test(VehicleFlag::CargoUnloading)) SetBit(modflags, 1);
if (v->vehicle_flags.Test(VehicleFlag::BuiltAsPrototype)) SetBit(modflags, 10);
if (v->vehicle_flags.Test(VehicleFlag::DrivingBackwards)) SetBit(modflags, 11);
return variable == 0xFE ? modflags : GB(modflags, 8, 8);
}