# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1557627400 -7200
# Node ID 06af4f0a92bdd2310d66832ecf3665c104ef7298
# Parent  e28ff0f1aca2c64118cb20821df7d1b30ce8457f
Fix Birdy being drawn behind hogs and other gears (bug 453)

diff -r e28ff0f1aca2 -r 06af4f0a92bd ChangeLog.txt
--- 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
diff -r e28ff0f1aca2 -r 06af4f0a92bd hedgewars/uGearsList.pas
--- 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;