draw sentries with direction
authoralfadur
Tue, 30 Jun 2020 19:22:46 +0300
changeset 15680 d23ebe7c88f8
parent 15679 72173f800dc4
child 15681 a3f492e601dd
draw sentries with direction
hedgewars/uGearsRender.pas
--- a/hedgewars/uGearsRender.pas	Tue Jun 30 19:09:04 2020 +0300
+++ b/hedgewars/uGearsRender.pas	Tue Jun 30 19:22:46 2020 +0300
@@ -1744,7 +1744,7 @@
                          DrawSpriteRotatedF(sprCreeper, x, y, 1, hwRound(SignAs(_1,Gear^.Hedgehog^.Gear^.X-Gear^.X)), 0)
                     else DrawSpriteRotatedF(sprCreeper, x, y, 1, hwRound(SignAs(_1,Gear^.dX)), 0);
             gtSentry: begin
-                DrawSprite(sprSentry, x - 16, y - 16, 0, 0);
+                DrawSpriteRotated(sprSentry, x, y, hwSign(Gear^.dX), 0);
                 DrawCircle(x, y, Gear^.Radius, 1, 255, 0, 0, 255);
             end;
             gtGenericFaller: begin