Fix teleport tooltip claiming it doesn't end turn in hog placing phase with inf. attack 0.9.24
authorWuzzy <Wuzzy2@mail.ru>
Tue, 24 Jul 2018 20:15:32 +0200
branch0.9.24
changeset 13551 7259891805f9
parent 13550 d42237d16acf
child 13552 54b9fd6f4e84
Fix teleport tooltip claiming it doesn't end turn in hog placing phase with inf. attack
ChangeLog.txt
hedgewars/uStore.pas
--- a/ChangeLog.txt	Tue Jul 24 20:07:58 2018 +0200
+++ b/ChangeLog.txt	Tue Jul 24 20:15:32 2018 +0200
@@ -5,6 +5,7 @@
  * Fix crash when starting game with 2 controllers or more
  * Fix insane amount of droplets appearing when shooting minigun into ocean world edge
  * Limit number of droplets to 50 (temporary bugfix)
+ * Fix teleport tooltip claiming it doesn't end turn in hog placing phase with inf. attack
  + Add default controls for controllers (see README)
 
 ====================== 0.9.24.1 ====================
--- a/hedgewars/uStore.pas	Tue Jul 24 20:07:58 2018 +0200
+++ b/hedgewars/uStore.pas	Tue Jul 24 20:15:32 2018 +0200
@@ -1016,7 +1016,7 @@
         extra:= trmsg[sidNotYetAvailable];
     extracolor:= LongInt($ffc77070);
     end
-else if (((GameFlags and gfInfAttack) <> 0) and ((Ammoz[atype].Ammo.Propz and ammoprop_ForceTurnEnd) = 0)) or ((Ammoz[atype].Ammo.Propz and ammoprop_NoRoundEnd) <> 0) then
+else if ((((GameFlags and gfInfAttack) <> 0) and ((Ammoz[atype].Ammo.Propz and ammoprop_ForceTurnEnd) = 0)) or ((Ammoz[atype].Ammo.Propz and ammoprop_NoRoundEnd) <> 0)) and (not (PlacingHogs and (atype = amTeleport))) then
     // weapon or utility will not end your turn
     begin
     extra:= trmsg[sidNoEndTurn];