fix UT2k4

This commit is contained in:
cclecle
2023-06-28 21:35:04 +01:00
parent e327002a4e
commit 8f4c6d501a
2 changed files with 5 additions and 1 deletions

View File

@@ -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"]

View File

@@ -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"