hedgewars/CCHandlers.inc
changeset 2645 89aa2aa89066
parent 2642 097e3baa1305
child 2671 7e0f88013fe8
--- a/hedgewars/CCHandlers.inc	Sat Nov 28 02:46:15 2009 +0000
+++ b/hedgewars/CCHandlers.inc	Sat Nov 28 15:22:28 2009 +0000
@@ -518,6 +518,11 @@
 				TargetPoint.Y:= cScreenHeight - CursorPoint.Y - WorldDy;
 				end;
 			SendIPCXY('p', TargetPoint.X, TargetPoint.Y);
+			end
+		else
+			begin
+			TargetPoint.X:= putX;
+			TargetPoint.Y:= putY
 			end;
 		{$IFDEF DEBUGFILE}AddFilelog('put: ' + inttostr(TargetPoint.X) + ', ' + inttostr(TargetPoint.Y));{$ENDIF}
 		State:= State and not gstHHChooseTarget;