From 99e54bb5b4b30210c4ab20a8e474ee09be4f7fdd Mon Sep 17 00:00:00 2001 From: Shorohov Sergey Date: Sun, 1 Apr 2018 11:40:07 +0300 Subject: [PATCH] Fix bug, mp_fraglimit is less than zero (#279) --- README.md | 2 +- regamedll/dlls/multiplay_gamerules.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c6921c4e..9d60e9fe 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Archive's bin directory contains 2 subdirectories, 'bugfixed' and 'pure' | mp_auto_join_team | 0 | 0 | 1 | Automatically joins the team.
`0` disabled
`1` enable (Use in conjunction with the cvar humans_join_team any/CT/T) | | mp_max_teamkills | 3 | 0 | - | Maximum number of allowed teamkills before autokick. Used when enabled mp_autokick. | | mp_fragsleft | - | - | - | Is the number of frags left, if you have set mp_fraglimit. You just type mp_fragsleft in server console, and it tells you the number of frags left depending of mp_fraglimit. | -| mp_fraglimit | 0 | - | - | If set to something other than 0, when anybody’s scored reaches mp_fraglimit the server changes map.
`0` means no limit | +| mp_fraglimit | 0 | 0 | - | If set to something other than 0, when anybody’s scored reaches mp_fraglimit the server changes map.
`0` means no limit | | mp_timeleft | - | - | - | Is the number of time left before the map changes, if you have set mp_timelimit. You just type mp_timeleft in server console, and it tells you the number of time left depending of mp_timelimit. | | mp_timelimit | 0 | - | - | Period between map rotations.
`0` means no limit | | mp_forcerespawn | 0 | 0 | - | Players will automatically respawn when killed.
`0` disabled
`>0.00001` time delay to respawn | diff --git a/regamedll/dlls/multiplay_gamerules.cpp b/regamedll/dlls/multiplay_gamerules.cpp index 2e5db3b1..ee0cd7f8 100644 --- a/regamedll/dlls/multiplay_gamerules.cpp +++ b/regamedll/dlls/multiplay_gamerules.cpp @@ -2607,7 +2607,7 @@ bool CHalfLifeMultiplay::CheckFragLimit() #ifdef REGAMEDLL_ADD int fragsRemaining = 0; - if (fraglimit.value) + if (fraglimit.value >= 0) { int bestFrags = fraglimit.value;