Fix parachute being drawn behind tags and objects
authorWuzzy <Wuzzy2@mail.ru>
Mon, 03 Jun 2019 18:56:08 +0200
changeset 15108 7a54df47b852
parent 15107 b4a0dc4e85e8
child 15109 acd50a72af59
Fix parachute being drawn behind tags and objects
ChangeLog.txt
hedgewars/uGearsList.pas
--- a/ChangeLog.txt	Mon Jun 03 16:49:42 2019 +0200
+++ b/ChangeLog.txt	Mon Jun 03 18:56:08 2019 +0200
@@ -97,7 +97,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
+ * Fix parachute and birdy sometimes being drawn behind hedgehogs and objects
 
 Game HUD:
  + Display current hog health (and related status icons) at top right corner
--- a/hedgewars/uGearsList.pas	Mon Jun 03 16:49:42 2019 +0200
+++ b/hedgewars/uGearsList.pas	Mon Jun 03 18:56:08 2019 +0200
@@ -330,6 +330,7 @@
                              ((GetRandom(90)+128) shl 16) or
                              (($d5+c) shl 8) or $ff}
                 end;
+   gtParachute: gear^.Z:= cCurrHHZ;
        gtShell: begin
                 gear^.Elasticity:= _0_8;
                 gear^.Friction:= _0_8;