King Mode: Automatically select teleport in king placement phase
authorWuzzy <Wuzzy2@mail.ru>
Tue, 27 Aug 2019 06:05:03 +0200
changeset 15385 114b036522a6
parent 15384 c5934cdeecb6
child 15386 fcdb6e3a9d36
King Mode: Automatically select teleport in king placement phase
ChangeLog.txt
hedgewars/uAmmos.pas
--- a/ChangeLog.txt	Mon Aug 26 15:44:03 2019 -0600
+++ b/ChangeLog.txt	Tue Aug 27 06:05:03 2019 +0200
@@ -50,6 +50,7 @@
  + CTF_Blizzard: Various minor graphical and text improvements
  + Frenzy: Change ammo slots
  + Continental supplies: Show continent in team bars
+ + King Mode: Automatically select teleport in king placement phase
  * Balanced Random Weapon: Fix Lua errors after using Time Box
  * Racer: Fix racer ghost not getting reset after a skip
  * Space Invasion: No longer allow to set start shield above shield limit
--- a/hedgewars/uAmmos.pas	Mon Aug 26 15:44:03 2019 -0600
+++ b/hedgewars/uAmmos.pas	Tue Aug 27 06:05:03 2019 +0200
@@ -202,7 +202,7 @@
             if Hedgehogs[i].Gear <> nil then
                 begin
                 Hedgehogs[i].Ammo:= GetAmmoByNum(Hedgehogs[i].AmmoStore);
-                if (GameFlags and gfPlaceHog) <> 0 then
+                if ((GameFlags and gfPlaceHog) <> 0) or (((GameFlags and gfKing) <> 0) and (Hedgehogs[i].King = true)) then
                     Hedgehogs[i].CurAmmoType:= amTeleport
                 else
                     Hedgehogs[i].CurAmmoType:= amNothing