mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-03-03 17:25:24 +03:00
Bugfix: a crash command votemap
in case mapcycle is empty.
Fix: typo with localized string.
This commit is contained in:
parent
b4fec27dc6
commit
23b1ab8b05
@ -3610,8 +3610,11 @@ void CHalfLifeMultiplay::__API_VHOOK(PlayerKilled)(CBasePlayer *pVictim, entvars
|
||||
if (autokick.value && killer->m_iTeamKills == 3)
|
||||
#endif
|
||||
{
|
||||
#ifdef REGAMEDLL_FIXES
|
||||
ClientPrint(killer->pev, HUD_PRINTCONSOLE, "#Banned_For_Killing_Teammates");
|
||||
#else
|
||||
ClientPrint(killer->pev, HUD_PRINTCONSOLE, "#Banned_For_Killing_Teamates");
|
||||
|
||||
#endif
|
||||
int iUserID = GETPLAYERUSERID(killer->edict());
|
||||
if (iUserID != -1)
|
||||
{
|
||||
@ -4439,6 +4442,9 @@ int GetMapCount()
|
||||
|
||||
do
|
||||
{
|
||||
if (!item)
|
||||
break;
|
||||
|
||||
++nCount;
|
||||
item = item->next;
|
||||
} while (item != mapcycle.next_item);
|
||||
|
Loading…
x
Reference in New Issue
Block a user