summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-09-26 20:12:47 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-09-26 20:12:47 +0200
commit796ad66d722cfde7e9152e52f914e1d9605cbf0b (patch)
treedf030032b6c54672e0bbddf6dc0b986bcfbf0ec9
parentMerge pull request #715 from Nick007J/master (diff)
downloadre3-796ad66d722cfde7e9152e52f914e1d9605cbf0b.tar
re3-796ad66d722cfde7e9152e52f914e1d9605cbf0b.tar.gz
re3-796ad66d722cfde7e9152e52f914e1d9605cbf0b.tar.bz2
re3-796ad66d722cfde7e9152e52f914e1d9605cbf0b.tar.lz
re3-796ad66d722cfde7e9152e52f914e1d9605cbf0b.tar.xz
re3-796ad66d722cfde7e9152e52f914e1d9605cbf0b.tar.zst
re3-796ad66d722cfde7e9152e52f914e1d9605cbf0b.zip
-rw-r--r--src/control/Replay.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/control/Replay.cpp b/src/control/Replay.cpp
index 8276f94a..f21703ac 100644
--- a/src/control/Replay.cpp
+++ b/src/control/Replay.cpp
@@ -744,7 +744,7 @@ void CReplay::ProcessCarUpdate(CVehicle *vehicle, float interpolation, CAddressI
car->Damage.SetDoorStatus(DOOR_FRONT_LEFT, DOOR_STATUS_SWINGING);
if (vp->door_angles[1])
car->Damage.SetDoorStatus(DOOR_FRONT_RIGHT, DOOR_STATUS_SWINGING);
- if (vp->door_status & 1 && car->Damage.GetDoorStatus(DOOR_BONNET) != DOOR_STATUS_MISSING){
+ if (vp->door_status & 1 && car->Damage.GetDoorStatus(DOOR_BONNET) != DOOR_STATUS_MISSING) {
car->Damage.SetDoorStatus(DOOR_BONNET, DOOR_STATUS_MISSING);
car->SetDoorDamage(CAR_BONNET, DOOR_BONNET, true);
}
@@ -768,14 +768,14 @@ void CReplay::ProcessCarUpdate(CVehicle *vehicle, float interpolation, CAddressI
car->Damage.SetDoorStatus(DOOR_REAR_RIGHT, DOOR_STATUS_MISSING);
car->SetDoorDamage(CAR_DOOR_RR, DOOR_REAR_RIGHT, true);
}
- vehicle->bEngineOn = true;
- if (vehicle->IsCar())
- ((CAutomobile*)vehicle)->m_nDriveWheelsOnGround = 4;
- CWorld::Remove(vehicle);
- CWorld::Add(vehicle);
- if (vehicle->IsBoat())
- ((CBoat*)vehicle)->m_bIsAnchored = false;
}
+ vehicle->bEngineOn = true;
+ if (vehicle->IsCar())
+ ((CAutomobile*)vehicle)->m_nDriveWheelsOnGround = 4;
+ CWorld::Remove(vehicle);
+ CWorld::Add(vehicle);
+ if (vehicle->IsBoat())
+ ((CBoat*)vehicle)->m_bIsAnchored = false;
}
bool CReplay::PlayBackThisFrameInterpolation(CAddressInReplayBuffer *buffer, float interpolation, uint32 *pTimer){