mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-23 17:49:16 +01:00
fix garage
This commit is contained in:
parent
450cd17d16
commit
86f04884de
@ -1094,6 +1094,7 @@ void CGarage::Update()
|
|||||||
m_eGarageState = GS_CLOSING;
|
m_eGarageState = GS_CLOSING;
|
||||||
m_bClosingWithoutTargetCar = false;
|
m_bClosingWithoutTargetCar = false;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case GS_CLOSING:
|
case GS_CLOSING:
|
||||||
m_fDoorPos = Max(0.0f, m_fDoorPos - (m_bRotatedDoor ? ROTATED_DOOR_CLOSE_SPEED : DEFAULT_DOOR_CLOSE_SPEED) * CTimer::GetTimeStep());
|
m_fDoorPos = Max(0.0f, m_fDoorPos - (m_bRotatedDoor ? ROTATED_DOOR_CLOSE_SPEED : DEFAULT_DOOR_CLOSE_SPEED) * CTimer::GetTimeStep());
|
||||||
if (m_fDoorPos == 0.0f) {
|
if (m_fDoorPos == 0.0f) {
|
||||||
@ -1101,6 +1102,8 @@ void CGarage::Update()
|
|||||||
DMAudio.PlayOneShot(hGarages, SOUND_GARAGE_DOOR_CLOSED, 1.0f);
|
DMAudio.PlayOneShot(hGarages, SOUND_GARAGE_DOOR_CLOSED, 1.0f);
|
||||||
CPad::GetPad(0)->SetEnablePlayerControls(PLAYERCONTROL_GARAGE);
|
CPad::GetPad(0)->SetEnablePlayerControls(PLAYERCONTROL_GARAGE);
|
||||||
}
|
}
|
||||||
|
UpdateDoorsHeight();
|
||||||
|
break;
|
||||||
case GS_FULLYCLOSED:
|
case GS_FULLYCLOSED:
|
||||||
break;
|
break;
|
||||||
case GS_OPENING:
|
case GS_OPENING:
|
||||||
|
Loading…
Reference in New Issue
Block a user