player mood enum

This commit is contained in:
Sergeanur 2020-09-10 00:32:51 +03:00
parent c5b411c1ed
commit 7aca08a954
3 changed files with 14 additions and 5 deletions

View file

@ -3839,9 +3839,9 @@ cAudioManager::SetPlayersMood(uint8 mood, int32 time)
{
if (!m_bIsInitialised) return;
if (mood < 4) {
m_bPlayerMood = mood;
field_4B34 = CTimer::GetTimeInMilliseconds() + time;
if (mood < MAX_PLAYER_MOODS) {
m_nPlayerMood = mood;
m_nPlayerMoodTimer = CTimer::GetTimeInMilliseconds() + time;
}
}