hedgewars/HHHandlers.inc
changeset 6453 11c578d30bd3
parent 6450 14224c9b4594
child 6468 da1e7fe7cff7
equal deleted inserted replaced
6452:7c6f9b6672dc 6453:11c578d30bd3
  1127         else
  1127         else
  1128             doStepHedgehogDriven(Gear)
  1128             doStepHedgehogDriven(Gear)
  1129     end;
  1129     end;
  1130 if (Gear^.Message and (gmAllStoppable or gmLJump or gmHJump) = 0) and
  1130 if (Gear^.Message and (gmAllStoppable or gmLJump or gmHJump) = 0) and
  1131    (Gear^.State and (gstHHJumping or gstHHHJump or gstAttacking) = 0) and
  1131    (Gear^.State and (gstHHJumping or gstHHHJump or gstAttacking) = 0) and
  1132    not Gear^.dY.isNegative and
  1132    (not Gear^.dY.isNegative) and
  1133    (GameTicks mod (100*LongWOrd(hwRound(cMaxWindSpeed*2/cGravity))) = 0) and
  1133    (GameTicks mod (100*LongWOrd(hwRound(cMaxWindSpeed*2/cGravity))) = 0) and
  1134    (TestCollisionYwithGear(Gear, 1) and lfIce <> 0) then
  1134    (TestCollisionYwithGear(Gear, 1) and lfIce <> 0) then
  1135     begin
  1135     begin
  1136     slope:= CalcSlopeBelowGear(Gear);
  1136     slope:= CalcSlopeBelowGear(Gear);
  1137     Gear^.dX:=Gear^.dX+slope*_0_07;
  1137     Gear^.dX:=Gear^.dX+slope*_0_07;