# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1559896578 -7200
# Node ID 9e1e234a417c177a5b193bd3921a3a3c99601606
# Parent  824472aa4d9705d82fbd0e52cbae2293038f94fe
Battalion: Handle gfKing properly

diff -r 824472aa4d97 -r 9e1e234a417c 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