diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-01-13 14:54:45 +0100 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-01-13 14:54:45 +0100 |
commit | 011a9cc775bb37313af2ee6b7af2b84eb00df058 (patch) | |
tree | d310b443e28f48b9b39a539bf18d93311a9d58b8 /src/peds/PedFight.cpp | |
parent | fix save loading, hopefully (diff) | |
parent | remove scriptspath from premake (diff) | |
download | re3-011a9cc775bb37313af2ee6b7af2b84eb00df058.tar re3-011a9cc775bb37313af2ee6b7af2b84eb00df058.tar.gz re3-011a9cc775bb37313af2ee6b7af2b84eb00df058.tar.bz2 re3-011a9cc775bb37313af2ee6b7af2b84eb00df058.tar.lz re3-011a9cc775bb37313af2ee6b7af2b84eb00df058.tar.xz re3-011a9cc775bb37313af2ee6b7af2b84eb00df058.tar.zst re3-011a9cc775bb37313af2ee6b7af2b84eb00df058.zip |
Diffstat (limited to 'src/peds/PedFight.cpp')
-rw-r--r-- | src/peds/PedFight.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/peds/PedFight.cpp b/src/peds/PedFight.cpp index b57f1943..8625f23e 100644 --- a/src/peds/PedFight.cpp +++ b/src/peds/PedFight.cpp @@ -1793,7 +1793,7 @@ CPed::SetInvestigateEvent(eEventType event, CVector2D pos, float distanceToCount SetStoredState(); bFindNewNodeAfterStateRestore = false; SetPedState(PED_INVESTIGATE); - m_standardTimer = CTimer::GetTimeInMilliseconds() + time; + m_chatTimer = CTimer::GetTimeInMilliseconds() + time; m_eventType = event; m_eventOrThreat = pos; m_distanceToCountSeekDone = distanceToCountDone; @@ -1816,13 +1816,13 @@ CPed::InvestigateEvent(void) if (m_nWaitState == WAITSTATE_TURN180) return; - if (CTimer::GetTimeInMilliseconds() > m_standardTimer) { + if (CTimer::GetTimeInMilliseconds() > m_chatTimer) { - if (m_standardTimer) { + if (m_chatTimer) { if (m_eventType < EVENT_ASSAULT_NASTYWEAPON) SetWaitState(WAITSTATE_TURN180, nil); - m_standardTimer = 0; + m_chatTimer = 0; } else { ClearInvestigateEvent(); } @@ -1882,7 +1882,7 @@ CPed::InvestigateEvent(void) Say(SOUND_PED_CHAT_EVENT); } else { - m_standardTimer = 0; + m_chatTimer = 0; } } else if (CTimer::GetTimeInMilliseconds() > m_lookTimer) { @@ -2021,7 +2021,7 @@ CPed::ClearInvestigateEvent(void) animAssoc->flags |= ASSOC_DELETEFADEDOUT; } if (m_eventType > EVENT_EXPLOSION) - m_standardTimer = CTimer::GetTimeInMilliseconds() + 15000; + m_chatTimer = CTimer::GetTimeInMilliseconds() + 15000; bGonnaInvestigateEvent = false; m_pEventEntity = nil; |