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

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();
}