hedgewars/uGearsRender.pas
changeset 4790 4cb3f7890fbd
parent 4617 42aad2cd981e
child 4808 7c3e5b52344a
--- a/hedgewars/uGearsRender.pas	Thu Dec 30 20:55:22 2010 +0100
+++ b/hedgewars/uGearsRender.pas	Thu Dec 30 22:20:17 2010 +0100
@@ -555,7 +555,7 @@
                 amPortalGun: if (CurWeapon^.Timer and 2) <> 0 then // Add a new Hedgehog value instead of abusing timer?
                                 DrawRotatedF(sprPortalGun, hx, hy, 0, sign, aangle)
                         else
-                                DrawRotatedF(sprPortalGun, hx, hy, 1+(CurWeapon^.Timer and 1), sign, aangle);
+                                DrawRotatedF(sprPortalGun, hx, hy, 1+CurWeapon^.Pos, sign, aangle);
                 amSniperRifle: DrawRotatedF(sprSniperRifle, hx, hy, 0, sign, aangle);
                 amBlowTorch: DrawRotated(sprHandBlowTorch, hx, hy, sign, aangle);
                 amCake: DrawRotated(sprHandCake, hx, hy, sign, aangle);