diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-18 22:50:37 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-18 22:50:37 +0200 |
commit | c4cd45d47c01d89bab28f196f03ed9cb1978005b (patch) | |
tree | adfdb08e894945432bcfe0f84883fb3219fd2a72 /src/control/Phones.cpp | |
parent | Changed extraOffset value. (diff) | |
download | re3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.tar re3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.tar.gz re3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.tar.bz2 re3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.tar.lz re3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.tar.xz re3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.tar.zst re3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.zip |
Diffstat (limited to 'src/control/Phones.cpp')
-rw-r--r-- | src/control/Phones.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/control/Phones.cpp b/src/control/Phones.cpp index 7fdc81c5..15e9f9f1 100644 --- a/src/control/Phones.cpp +++ b/src/control/Phones.cpp @@ -12,6 +12,9 @@ #include "AudioScriptObject.h" #include "RpAnimBlend.h" #include "AnimBlendAssociation.h" +#ifdef FIX_BUGS +#include "Replay.h" +#endif CPhoneInfo gPhoneInfo; @@ -45,6 +48,10 @@ isPhoneAvailable(int m_phoneId) void CPhoneInfo::Update(void) { +#ifdef FIX_BUGS + if (CReplay::IsPlayingBack()) + return; +#endif CPlayerPed *player = FindPlayerPed(); CPlayerInfo *playerInfo = &CWorld::Players[CWorld::PlayerInFocus]; if (bDisplayingPhoneMessage && CTimer::GetTimeInMilliseconds() > PhoneEnableControlsTimer) { |