this should prevent hogs from hovering in air after using hammer
authorsheepluva
Sun, 09 Aug 2015 05:19:56 +0200
changeset 11044 c3d76daae637
parent 11043 79a77bef4c61
child 11045 9d840edd0ff9
this should prevent hogs from hovering in air after using hammer
hedgewars/uGearsHandlersMess.pas
--- a/hedgewars/uGearsHandlersMess.pas	Sun Aug 09 04:30:41 2015 +0200
+++ b/hedgewars/uGearsHandlersMess.pas	Sun Aug 09 05:19:56 2015 +0200
@@ -5211,6 +5211,9 @@
 HHGear:= Gear^.Hedgehog^.Gear;
 HHGear^.State:= HHGear^.State or gstNoDamage;
 DeleteCI(HHGear);
+SetLittle(HHGear^.dY);
+HHGear^.dY.IsNegative:= true;
+HHGear^.State:= HHGear^.State or gstMoving;
 
 t:= CheckGearsCollision(Gear);