Battalion: Handle gfKing properly
authorWuzzy <Wuzzy2@mail.ru>
Fri, 07 Jun 2019 10:36:18 +0200
changeset 15146 9e1e234a417c
parent 15145 824472aa4d97
child 15147 ab21cbb0e3a0
Battalion: Handle gfKing properly
share/hedgewars/Data/Scripts/Multiplayer/Battalion.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Battalion.lua	Wed Jun 05 00:23:56 2019 +0300
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Battalion.lua	Fri Jun 07 10:36:18 2019 +0200
@@ -1747,4 +1747,11 @@
   else
     DisableGameFlags(gfPerHogAmmo)
   end
+  if mode ~= 'points' and mode ~= 'highland' and mode ~= 'king' then
+    if GetGameFlag(gfKing) then
+      mode = 'king'
+      modeExplicit = true
+    end
+  end
+  DisableGameFlags(gfKing)
 end