1
0
forked from mirrors/0ad

Show the last-man-standing option regardless of whether it is possible to set it. Reviewed by fatherbushido, refs #3970.

This was SVN commit r18603.
This commit is contained in:
elexis
2016-08-14 15:35:58 +00:00
parent 0c21c24754
commit 00a469be1b
@@ -1385,10 +1385,10 @@ function updateGUIObjects()
Engine.GetGUIObjectByName("optionWonderDuration").hidden =
g_GameAttributes.settings.GameType &&
g_GameAttributes.settings.GameType != "wonder";
Engine.GetGUIObjectByName("optionLastManStanding").hidden = mapSettings.LockTeams;
Engine.GetGUIObjectByName("cheatWarningText").hidden = !g_IsNetworked || !mapSettings.CheatsEnabled;
Engine.GetGUIObjectByName("lastManStanding").enabled = !mapSettings.LockTeams;
Engine.GetGUIObjectByName("enableCheats").enabled = !mapSettings.RatingEnabled;
Engine.GetGUIObjectByName("lockTeams").enabled = !mapSettings.RatingEnabled;