mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Remove unused regs.dx
This commit is contained in:
@@ -9646,16 +9646,12 @@ int32_t Vehicle::UpdateTrackMotion(int32_t* outStation)
|
||||
int32_t totalAcceleration = 0;
|
||||
// ebp
|
||||
int32_t totalMass = 0;
|
||||
// Not used
|
||||
regs.dx = 0;
|
||||
// ebx
|
||||
int32_t numVehicles = 0;
|
||||
|
||||
for (; vehicle != nullptr; vehicle = GetEntity<Vehicle>(vehicle->next_vehicle_on_train))
|
||||
{
|
||||
numVehicles++;
|
||||
// Not used?
|
||||
regs.dx |= vehicle->update_flags;
|
||||
totalMass += vehicle->mass;
|
||||
totalAcceleration += vehicle->acceleration;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user