Fix Birdy being drawn behind hogs and other gears (bug 453)
authorWuzzy <Wuzzy2@mail.ru>
Sun, 12 May 2019 04:16:40 +0200
changeset 14941 06af4f0a92bd
parent 14940 e28ff0f1aca2
child 14942 7ced40e21b2c
Fix Birdy being drawn behind hogs and other gears (bug #453)
ChangeLog.txt
hedgewars/uGearsList.pas
--- a/ChangeLog.txt	Sun May 12 03:27:43 2019 +0200
+++ b/ChangeLog.txt	Sun May 12 04:16:40 2019 +0200
@@ -73,6 +73,7 @@
  * Fix wrong ice beam angle if it goes diagonally up out of map through world wrap
  * Fix double water splash when flying saucer drowns
  * Fix odd floating pixels when wielding and rotating cleaver
+ * Fix birdy being drawn behind hedgehogs and objects
 
 Game HUD:
  + Colorize switching arrows, pointing arrow and target cross in clan color
--- a/hedgewars/uGearsList.pas	Sun May 12 03:27:43 2019 +0200
+++ b/hedgewars/uGearsList.pas	Sun May 12 04:16:40 2019 +0200
@@ -666,7 +666,8 @@
        gtBirdy: begin
                 gear^.Radius:= 16; // todo: check
                 gear^.Health := 2000;
-                gear^.FlightTime := 2
+                gear^.FlightTime := 2;
+                gear^.Z:= cCurrHHZ+1;
                 end;
          gtEgg: begin
                 gear^.AdvBounce:= 1;