Fix serious bug in pneumatic drill
authorunc0rr
Sun, 29 Oct 2006 13:06:27 +0000
changeset 219 73a2bf84d0e6
parent 218 6e64db60222c
child 220 d79eaeaf969d
Fix serious bug in pneumatic drill
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Sun Oct 29 12:44:01 2006 +0000
+++ b/hedgewars/GSHandlers.inc	Sun Oct 29 13:06:27 2006 +0000
@@ -372,7 +372,7 @@
 if TestCollisionYwithGear(Gear, 1) then
    begin
    Gear.dY:= 0;
-   HHGear.dX:= 0.0000001 * hwSign(PGear(Gear.Hedgehog).dX);
+   HHGear.dX:= 0.0000001 * hwSign(HHGear.dX);
    HHGear.dY:= 0;
    end else
    begin