hedgewars/GSHandlers.inc
changeset 2060 3e9e5e1be6f5
parent 2059 b25eed7f9183
child 2068 9d683de175d7
equal deleted inserted replaced
2059:b25eed7f9183 2060:3e9e5e1be6f5
   715 if ((HHGear^.State and gstHHDriven) = 0)
   715 if ((HHGear^.State and gstHHDriven) = 0)
   716 	or (CheckGearDrowning(HHGear))
   716 	or (CheckGearDrowning(HHGear))
   717 	or TestCollisionYwithGear(HHGear, 1) then
   717 	or TestCollisionYwithGear(HHGear, 1) then
   718 	begin
   718 	begin
   719 	DeleteGear(Gear);
   719 	DeleteGear(Gear);
       
   720 	isCursorVisible:= false;
   720 	exit
   721 	exit
   721 	end;
   722 	end;
   722 
   723 
   723 HedgehogChAngle(HHGear);
   724 HedgehogChAngle(HHGear);
   724 
   725 
  1307 		SetLittle(dX);
  1308 		SetLittle(dX);
  1308 		dY:= _0;
  1309 		dY:= _0;
  1309 		State:= State or gstMoving;
  1310 		State:= State or gstMoving;
  1310 		end;
  1311 		end;
  1311 	DeleteGear(Gear);
  1312 	DeleteGear(Gear);
       
  1313 	isCursorVisible:= false;
  1312 	exit
  1314 	exit
  1313 	end;
  1315 	end;
  1314 
  1316 
  1315 if not TestCollisionXwithGear(HHGear, hwSign(HHGear^.dX)) then
  1317 if not TestCollisionXwithGear(HHGear, hwSign(HHGear^.dX)) then
  1316 	HHGear^.X:= HHGear^.X + cWindSpeed * 200;
  1318 	HHGear^.X:= HHGear^.X + cWindSpeed * 200;