equal
deleted
inserted
replaced
1297 if (Gear^.dY.QWordValue <> 0) or (not TestCollisionYwithGear(Gear, 1)) then |
1297 if (Gear^.dY.QWordValue <> 0) or (not TestCollisionYwithGear(Gear, 1)) then |
1298 begin |
1298 begin |
1299 AllInactive:= false; |
1299 AllInactive:= false; |
1300 Gear^.dY:= Gear^.dY + cGravity; |
1300 Gear^.dY:= Gear^.dY + cGravity; |
1301 Gear^.Y:= Gear^.Y + Gear^.dY; |
1301 Gear^.Y:= Gear^.Y + Gear^.dY; |
|
1302 if (not Gear^.dY.isNegative) and (Gear^.Kind = gtExplosives) then SetAllHHToActive; |
1302 if (Gear^.dY.isNegative) and TestCollisionYwithGear(Gear, -1) then Gear^.dY:= _0 else |
1303 if (Gear^.dY.isNegative) and TestCollisionYwithGear(Gear, -1) then Gear^.dY:= _0 else |
1303 if (not Gear^.dY.isNegative) and TestCollisionYwithGear(Gear, 1) then |
1304 if (not Gear^.dY.isNegative) and TestCollisionYwithGear(Gear, 1) then |
1304 begin |
1305 begin |
1305 if Gear^.dY > _0_2 then |
1306 if Gear^.dY > _0_2 then |
1306 for i:= min(12, hwRound(Gear^.dY*_10)) downto 0 do |
1307 for i:= min(12, hwRound(Gear^.dY*_10)) downto 0 do |