Multiplayer rules: Don't respect fraglimit cvar if it ain't set.

This commit is contained in:
Marco Cawthorne 2021-12-13 10:38:29 -08:00
parent 626a9d5461
commit b5950c5491
Signed by: eukara
GPG Key ID: C196CD8BA993248A
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ void
HLMultiplayerRules::CheckRules(void)
{
/* last person who killed somebody has hit the limit */
if (cvar("fraglimit"))
if (g_dmg_eAttacker.frags >= cvar("fraglimit"))
IntermissionStart();
}