Prevent unc0rr's sneaky escape
authornemo
Fri, 22 May 2009 20:36:57 +0000
changeset 2089 a08758aed76a
parent 2088 09cfff5c63ea
child 2090 4edb0d49a42d
Prevent unc0rr's sneaky escape
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Fri May 22 18:55:38 2009 +0000
+++ b/hedgewars/GSHandlers.inc	Fri May 22 20:36:57 2009 +0000
@@ -1267,7 +1267,8 @@
 	AfterAttack;
 	exit
 	end;
-HHGear^.Y:= HHGear^.Y + HHGear^.dY
+
+if Land[hwRound(HHGear^.Y + HHGear^.dY), hwRound(HHGear^.X)] <> COLOR_INDESTRUCTIBLE then HHGear^.Y:= HHGear^.Y + HHGear^.dY
 end;
 
 procedure doStepFirePunch(Gear: PGear);