diff options
author | Meji <alvaromegias_46@hotmail.com> | 2021-03-15 00:06:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-15 00:06:26 +0100 |
commit | 72f99531b7cdfad1c3fca02d32e88f4ac2662043 (patch) | |
tree | 4e9ab69425baf94e9123933ad8bd2f58cf303da5 /src | |
parent | 41c342113fa2ae18a3616ea3ccfa28b139d9a99f (diff) |
Core/Players: Update the location of the cinematic camera only if there is an active cinematic (#26215)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Entities/Player/Player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index adcd3c1b7fe..90398b2f1a2 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -922,7 +922,7 @@ void Player::Update(uint32 p_time) // Update cinematic location, if 500ms have passed and we're doing a cinematic now. _cinematicMgr->m_cinematicDiff += p_time; - if (_cinematicMgr->m_activeCinematicCameraIndex != 0 && GetMSTimeDiffToNow(_cinematicMgr->m_lastCinematicCheck) > CINEMATIC_UPDATEDIFF) + if (_cinematicMgr->m_cinematicCamera && _cinematicMgr->m_activeCinematic && GetMSTimeDiffToNow(_cinematicMgr->m_lastCinematicCheck) > CINEMATIC_UPDATEDIFF) { _cinematicMgr->m_lastCinematicCheck = GameTime::GetGameTimeMS(); _cinematicMgr->UpdateCinematicLocation(p_time); |