diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-02-23 11:12:44 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-02-23 11:12:44 +0100 |
commit | 1ba696f5fca9dfc7c6f6d4f5f2537392b96cfc63 (patch) | |
tree | 03f1c90f1578c84d2c41beaf077108bd915a8217 /src/core/PlayerInfo.cpp | |
parent | some cosmetic stuff (diff) | |
download | re3-1ba696f5fca9dfc7c6f6d4f5f2537392b96cfc63.tar re3-1ba696f5fca9dfc7c6f6d4f5f2537392b96cfc63.tar.gz re3-1ba696f5fca9dfc7c6f6d4f5f2537392b96cfc63.tar.bz2 re3-1ba696f5fca9dfc7c6f6d4f5f2537392b96cfc63.tar.lz re3-1ba696f5fca9dfc7c6f6d4f5f2537392b96cfc63.tar.xz re3-1ba696f5fca9dfc7c6f6d4f5f2537392b96cfc63.tar.zst re3-1ba696f5fca9dfc7c6f6d4f5f2537392b96cfc63.zip |
Diffstat (limited to 'src/core/PlayerInfo.cpp')
-rw-r--r-- | src/core/PlayerInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/PlayerInfo.cpp b/src/core/PlayerInfo.cpp index a01c1398..633be810 100644 --- a/src/core/PlayerInfo.cpp +++ b/src/core/PlayerInfo.cpp @@ -164,7 +164,7 @@ void CPlayerInfo::MakePlayerSafe(bool toggle)
{
if (toggle) {
- CTheScripts::CountdownToMakePlayerUnsafe = 0;
+ CTheScripts::ResetCountdownToMakePlayerUnsafe();
m_pPed->m_pWanted->m_bIgnoredByEveryone = true;
CWorld::StopAllLawEnforcersInTheirTracks();
CPad::GetPad(0)->DisablePlayerControls |= PLAYERCONTROL_DISABLED_20;
@@ -185,7 +185,7 @@ CPlayerInfo::MakePlayerSafe(bool toggle) CWorld::ExtinguishAllCarFiresInArea(GetPos(), 4000.0f);
CReplay::DisableReplays();
- } else if (!CGame::playingIntro && !CTheScripts::CountdownToMakePlayerUnsafe) {
+ } else if (!CGame::playingIntro && !CTheScripts::IsCountdownToMakePlayerUnsafeOn()) {
m_pPed->m_pWanted->m_bIgnoredByEveryone = false;
CPad::GetPad(0)->DisablePlayerControls &= ~PLAYERCONTROL_DISABLED_20;
m_pPed->bBulletProof = false;
|