Fix swapped x/y in drill rocket test
authornemo
Thu, 09 Sep 2010 23:13:11 -0400
changeset 3846 c6b62c7f3668
parent 3845 90034acb2e43
child 3847 771562124b16
Fix swapped x/y in drill rocket test
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Thu Sep 09 14:16:44 2010 -0400
+++ b/hedgewars/GSHandlers.inc	Thu Sep 09 23:13:11 2010 -0400
@@ -2677,7 +2677,7 @@
        or (not TestCollisionYWithGear(Gear, hwSign(Gear^.dY))
        and not TestCollisionXWithGear(Gear, hwSign(Gear^.dX)))
 // CheckLandValue returns true if the type isn't matched
-       or not CheckLandValue(hwRound(Gear^.Y), hwRound(Gear^.X), lfIndestructible) then
+       or not CheckLandValue(hwRound(Gear^.X), hwRound(Gear^.Y), lfIndestructible) then
     begin
         //out of time or exited ground
         StopSound(Gear^.SoundChannel);