Activate hedgehogs if explosives are falling. They could be sitting on top.
authornemo
Thu, 04 Mar 2010 19:35:27 +0000
changeset 2932 9bc0cf3c7ac1
parent 2931 97f75507e1cb
child 2933 02af54eb7e1e
Activate hedgehogs if explosives are falling. They could be sitting on top.
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Thu Mar 04 16:20:07 2010 +0000
+++ b/hedgewars/GSHandlers.inc	Thu Mar 04 19:35:27 2010 +0000
@@ -1299,6 +1299,7 @@
 	AllInactive:= false;
 	Gear^.dY:= Gear^.dY + cGravity;
 	Gear^.Y:= Gear^.Y + Gear^.dY;
+    if (not Gear^.dY.isNegative) and (Gear^.Kind = gtExplosives) then SetAllHHToActive;
 	if (Gear^.dY.isNegative) and TestCollisionYwithGear(Gear, -1) then Gear^.dY:= _0 else
 	if (not Gear^.dY.isNegative) and TestCollisionYwithGear(Gear, 1) then
 		begin