Bugfix: a crash command votemap in case mapcycle is empty.

Fix: typo with localized string.
This commit is contained in:
s1lentq 2016-08-23 14:09:21 +07:00
parent b4fec27dc6
commit 23b1ab8b05

View File

@ -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);