fix UT2k4
This commit is contained in:
@@ -143,6 +143,8 @@ class RconUTEngineWebAdminUT2k4(RconUTEngineWebAdmin.RconUTEngineWebAdminMODCENT
|
||||
result["GameTypeSelect"] = self.gametype
|
||||
if "TimeLimit" in ServerGame:
|
||||
result["TimeLimit"] = ServerGame["TimeLimit"]
|
||||
else:
|
||||
result["TimeLimit"] = None
|
||||
|
||||
#!!! sometime maps are not in the cycle (maybe because of mapvote + map number limit): so map might be None
|
||||
# + convert map file name to map name (using map list)
|
||||
@@ -156,6 +158,8 @@ class RconUTEngineWebAdminUT2k4(RconUTEngineWebAdmin.RconUTEngineWebAdminMODCENT
|
||||
result["MinNetPlayers"] = ServerConfig["MinNetPlayers"]
|
||||
if "bWeaponStay" in ServerGame:
|
||||
result["bWeaponStay"] = ServerGame["bWeaponStay"]
|
||||
else:
|
||||
result["bWeaponStay"] = None
|
||||
result["SpawnProtectionTime"] = ServerGame["SpawnProtectionTime"]
|
||||
result["bAllowBehindView"] = ServerRules["bAllowBehindView"]
|
||||
result["bAllowWeaponThrowing"] = ServerRules["bAllowWeaponThrowing"]
|
||||
|
||||
@@ -7,4 +7,4 @@ Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Unported
|
||||
You should have received a copy of the license along with this
|
||||
work. If not, see <https://creativecommons.org/licenses/by-nc-sa/4.0/>.
|
||||
"""
|
||||
__version__ = "0.1.11"
|
||||
__version__ = "0.1.12"
|
||||
|
||||
Reference in New Issue
Block a user