hedgewars/CCHandlers.inc
changeset 2642 097e3baa1305
parent 2635 80d02d3e24ae
child 2645 89aa2aa89066
equal deleted inserted replaced
2641:b08cafb86797 2642:097e3baa1305
   517 				TargetPoint.X:= CursorPoint.X - WorldDx;
   517 				TargetPoint.X:= CursorPoint.X - WorldDx;
   518 				TargetPoint.Y:= cScreenHeight - CursorPoint.Y - WorldDy;
   518 				TargetPoint.Y:= cScreenHeight - CursorPoint.Y - WorldDy;
   519 				end;
   519 				end;
   520 			SendIPCXY('p', TargetPoint.X, TargetPoint.Y);
   520 			SendIPCXY('p', TargetPoint.X, TargetPoint.Y);
   521 			end;
   521 			end;
       
   522 		{$IFDEF DEBUGFILE}AddFilelog('put: ' + inttostr(TargetPoint.X) + ', ' + inttostr(TargetPoint.Y));{$ENDIF}
   522 		State:= State and not gstHHChooseTarget;
   523 		State:= State and not gstHHChooseTarget;
   523 		if (Ammo^[CurSlot, CurAmmo].Propz and ammoprop_AttackingPut) <> 0 then
   524 		if (Ammo^[CurSlot, CurAmmo].Propz and ammoprop_AttackingPut) <> 0 then
   524 			Message:= Message or gm_Attack;
   525 			Message:= Message or gm_Attack;
   525 		end
   526 		end
   526 	else
   527 	else