diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-25 10:11:22 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-25 10:11:22 +0100 |
commit | 86f04884defa5845a5309cd0a72487562bee629e (patch) | |
tree | 8e6ca88e542b232d3597a0ba5ff8eb976caece55 /src | |
parent | make screen droplets not crash without neo.txd (diff) | |
download | re3-86f04884defa5845a5309cd0a72487562bee629e.tar re3-86f04884defa5845a5309cd0a72487562bee629e.tar.gz re3-86f04884defa5845a5309cd0a72487562bee629e.tar.bz2 re3-86f04884defa5845a5309cd0a72487562bee629e.tar.lz re3-86f04884defa5845a5309cd0a72487562bee629e.tar.xz re3-86f04884defa5845a5309cd0a72487562bee629e.tar.zst re3-86f04884defa5845a5309cd0a72487562bee629e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/Garages.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp index 61c1a8fc..2f36ff1d 100644 --- a/src/control/Garages.cpp +++ b/src/control/Garages.cpp @@ -1094,6 +1094,7 @@ void CGarage::Update() m_eGarageState = GS_CLOSING; m_bClosingWithoutTargetCar = false; } + break; case GS_CLOSING: m_fDoorPos = Max(0.0f, m_fDoorPos - (m_bRotatedDoor ? ROTATED_DOOR_CLOSE_SPEED : DEFAULT_DOOR_CLOSE_SPEED) * CTimer::GetTimeStep()); if (m_fDoorPos == 0.0f) { @@ -1101,6 +1102,8 @@ void CGarage::Update() DMAudio.PlayOneShot(hGarages, SOUND_GARAGE_DOOR_CLOSED, 1.0f); CPad::GetPad(0)->SetEnablePlayerControls(PLAYERCONTROL_GARAGE); } + UpdateDoorsHeight(); + break; case GS_FULLYCLOSED: break; case GS_OPENING: |