1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

unmeme a dvar check

This commit is contained in:
RaidMax
2020-04-18 17:48:49 -05:00
parent 842fdc63a7
commit 37daca4a9f
5 changed files with 12 additions and 4 deletions

View File

@ -929,7 +929,7 @@ namespace IW4MAdmin
infoResponse["mapname"];
int maxplayers = (GameName == Game.IW4) ? // gotta love IW4 idiosyncrasies
(await this.GetDvarAsync<int>("party_maxplayers")).Value :
infoResponse == null ?
infoResponse == null || !infoResponse.ContainsKey("sv_maxclients") ?
(await this.GetDvarAsync<int>("sv_maxclients")).Value :
Convert.ToInt32(infoResponse["sv_maxclients"]);
var gametype = infoResponse == null ?