hedgewars/GSHandlers.inc
changeset 2433 332287d62c81
parent 2429 f97bac89f0c5
child 2440 7274a82fddbb
equal deleted inserted replaced
2432:1a0bb82d55f0 2433:332287d62c81
  2309     fuel:= 5;
  2309     fuel:= 5;
  2310     end;*)
  2310     end;*)
  2311 
  2311 
  2312 if (HHGear^.Message and gm_Up) <> 0 then
  2312 if (HHGear^.Message and gm_Up) <> 0 then
  2313     begin
  2313     begin
       
  2314     if (not HHGear^.dY.isNegative) or (HHGear^.Y > -_256) then
       
  2315         HHGear^.dY:= HHGear^.dY - move;
  2314     HHGear^.dY:= HHGear^.dY - move;
  2316     HHGear^.dY:= HHGear^.dY - move;
  2315     dec(Gear^.Health, fuel);
  2317     dec(Gear^.Health, fuel);
  2316     Gear^.MsgParam:= Gear^.MsgParam or gm_Up;
  2318     Gear^.MsgParam:= Gear^.MsgParam or gm_Up;
  2317     Gear^.Timer:= GameTicks
  2319     Gear^.Timer:= GameTicks
  2318     end;
  2320     end;