Fix teleport tooltip claiming it doesn't end turn, while in in hog placing phase with inf. attack
authorWuzzy <Wuzzy2@mail.ru>
Sun, 08 Jul 2018 00:16:33 +0200
changeset 13455 8f746b6a477c
parent 13454 2d787d122083
child 13456 794dcf69a5aa
Fix teleport tooltip claiming it doesn't end turn, while in in hog placing phase with inf. attack
ChangeLog.txt
hedgewars/uStore.pas
--- a/ChangeLog.txt	Sat Jul 07 23:29:02 2018 +0200
+++ b/ChangeLog.txt	Sun Jul 08 00:16:33 2018 +0200
@@ -4,6 +4,7 @@
 Game:
  * Fix extreme amounts of droplets when shooting with minigun into ocean world edge
  * Fix hog being unable to walk after using sniper rifle without firing both shots
+ * Fix teleport tooltip claiming it doesn't end turn in hog placing phase with inf. attack
 
 Continental supplies:
  + Continents are now selected before the game starts
--- a/hedgewars/uStore.pas	Sat Jul 07 23:29:02 2018 +0200
+++ b/hedgewars/uStore.pas	Sun Jul 08 00:16:33 2018 +0200
@@ -1017,7 +1017,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];