gfInvulnerable: Fix misplaced halo icon
authorWuzzy <Wuzzy2@mail.ru>
Tue, 07 Jul 2020 00:11:20 +0200
changeset 15696 50dc9d0191d1
parent 15695 eeab5b90c082
child 15697 25371cae9fd7
gfInvulnerable: Fix misplaced halo icon
hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Tue Jul 07 00:07:40 2020 +0200
+++ b/hedgewars/uWorld.pas	Tue Jul 07 00:11:20 2020 +0200
@@ -1597,7 +1597,7 @@
         DrawSprite(sprInvulnHud, cScreenWidth div 2 - t, i, 0);
         if (CurrentHedgehog^.Effects[heResurrectable] <> 0) then
             // show halo for resurrectable hog
-            DrawSprite(sprHaloHud, cScreenWidth div 2 - 30, i - SpritesData[sprHaloHud].Height + 1, 0);
+            DrawSprite(sprHaloHud, cScreenWidth div 2 - t - 2, i - SpritesData[sprHaloHud].Height + 1, 0);
         // Vampirism
         if cVampiric then
             begin