mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-03-04 01:35:23 +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)
|
if (autokick.value && killer->m_iTeamKills == 3)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
#ifdef REGAMEDLL_FIXES
|
||||||
|
ClientPrint(killer->pev, HUD_PRINTCONSOLE, "#Banned_For_Killing_Teammates");
|
||||||
|
#else
|
||||||
ClientPrint(killer->pev, HUD_PRINTCONSOLE, "#Banned_For_Killing_Teamates");
|
ClientPrint(killer->pev, HUD_PRINTCONSOLE, "#Banned_For_Killing_Teamates");
|
||||||
|
#endif
|
||||||
int iUserID = GETPLAYERUSERID(killer->edict());
|
int iUserID = GETPLAYERUSERID(killer->edict());
|
||||||
if (iUserID != -1)
|
if (iUserID != -1)
|
||||||
{
|
{
|
||||||
@ -4439,6 +4442,9 @@ int GetMapCount()
|
|||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
if (!item)
|
||||||
|
break;
|
||||||
|
|
||||||
++nCount;
|
++nCount;
|
||||||
item = item->next;
|
item = item->next;
|
||||||
} while (item != mapcycle.next_item);
|
} while (item != mapcycle.next_item);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user