mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-26 14:45:38 +03:00
[CZERO] Fix count hostages ("ScenarioIcon" message) (#475)
Fix HUD hostage icon when last hostage was saved
This commit is contained in:
parent
8c723a635c
commit
7fb624ab6c
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user