[CZERO] Fix count hostages ("ScenarioIcon" message) (#475)

Fix HUD hostage icon when last hostage was saved
This commit is contained in:
Vaqtincha 2020-01-14 22:30:42 +05:00 committed by Dmitry Novikov
parent 8c723a635c
commit 7fb624ab6c

View File

@ -457,7 +457,9 @@ void CHostage::IdleThink()
GETPLAYERUSERID(pPlayer->edict()), GETPLAYERAUTHID(pPlayer->edict()));
}
#ifndef REGAMEDLL_FIXES
SendHostageEventMsg();
#endif
MESSAGE_BEGIN(MSG_SPEC, SVC_DIRECTOR);
WRITE_BYTE(9);
@ -470,6 +472,10 @@ void CHostage::IdleThink()
pev->effects |= EF_NODRAW;
Remove();
#ifdef REGAMEDLL_FIXES
SendHostageEventMsg();
#endif
CSGameRules()->m_iHostagesRescued++;
CSGameRules()->CheckWinConditions();