Fix hog holding nothing in hand when choosing napalm or piano strike
authorWuzzy <almikes@aol.com>
Tue, 10 Oct 2017 03:08:00 +0200
changeset 12686 4e5e725f2c56
parent 12685 5a253f158071
child 12687 b7fd7ab8ddf9
Fix hog holding nothing in hand when choosing napalm or piano strike
ChangeLog.txt
hedgewars/uGearsRender.pas
--- a/ChangeLog.txt	Tue Oct 10 02:00:04 2017 +0200
+++ b/ChangeLog.txt	Tue Oct 10 03:08:00 2017 +0200
@@ -56,6 +56,7 @@
  * Fixed short sound effect breakdown right after using a time box
  * Fixed sticky mine sound sometimes playing when shooting portable portal device when a sticky mine is placed on terrain
  * Fixed player being able to switch to dying hog
+ * Fixed hedgehog holding nothing in hand when napalm or piano strike got selected
  * Remove buggy /finish chat command
  * Various other fixes
 
--- a/hedgewars/uGearsRender.pas	Tue Oct 10 02:00:04 2017 +0200
+++ b/hedgewars/uGearsRender.pas	Tue Oct 10 03:08:00 2017 +0200
@@ -795,6 +795,7 @@
 
             case amt of
                 amAirAttack,
+                amNapalm,
                 amMineStrike,
                 amDrillStrike: DrawSpriteRotated(sprHandAirAttack, sx, oy, sign, 0);
                 amPickHammer: DrawHedgehog(sx, sy,
@@ -802,7 +803,8 @@
                             1,
                             2,
                             0);
-                amTeleport: DrawSpriteRotatedF(sprTeleport, sx, sy, 0, sign, 0);
+                amTeleport,
+                amPiano: DrawSpriteRotatedF(sprTeleport, sx, sy, 0, sign, 0);
                 amKamikaze: DrawHedgehog(sx, sy,
                             sign,
                             1,