hedgewars/GSHandlers.inc
changeset 2226 e35b62cb7a1c
parent 2225 162d8f6bca25
child 2227 743218daf878
equal deleted inserted replaced
2225:162d8f6bca25 2226:e35b62cb7a1c
  2242 HHGear^.State:= HHGear^.State or gstMoving; 
  2242 HHGear^.State:= HHGear^.State or gstMoving; 
  2243 
  2243 
  2244 Gear^.X:= HHGear^.X;
  2244 Gear^.X:= HHGear^.X;
  2245 Gear^.Y:= HHGear^.Y;
  2245 Gear^.Y:= HHGear^.Y;
  2246 // For some reason I need to reapply followgear here, something else grabs it otherwise.
  2246 // For some reason I need to reapply followgear here, something else grabs it otherwise.
  2247 FollowGear:= HHGear;
  2247 if not bShowAmmoMenu then FollowGear:= HHGear;
  2248 doStepHedgehogMoving(HHGear);
  2248 doStepHedgehogMoving(HHGear);
  2249 
  2249 
  2250 if  (Gear^.Health = 0)
  2250 if  (Gear^.Health = 0)
  2251     or (HHGear^.Damage <> 0)
  2251     or (HHGear^.Damage <> 0)
  2252 	or CheckGearDrowning(HHGear)
  2252 	or CheckGearDrowning(HHGear)