hedgewars/CCHandlers.inc
changeset 154 5667e6f38704
parent 145 e593d5266e01
child 161 d8870bbf960e
--- a/hedgewars/CCHandlers.inc	Mon Sep 18 18:07:41 2006 +0000
+++ b/hedgewars/CCHandlers.inc	Wed Sep 20 15:33:47 2006 +0000
@@ -324,11 +324,7 @@
            SDL_GetMouseState(@TargetPoint.X, @TargetPoint.Y);
            dec(TargetPoint.X, WorldDx);
            dec(TargetPoint.Y, WorldDy);
-           s[0]:= #5;
-           s[1]:= 'p';
-           PSmallInt(@s[2])^:= TargetPoint.X;
-           PSmallInt(@s[4])^:= TargetPoint.Y;
-           SendIPC(s)
+           SendIPCXY('p', TargetPoint.X, TargetPoint.Y);
            end;
         State:= State and not gstHHChooseTarget;
         end else if CurrentTeam.ExtDriven then OutError('got /put while not being in choose target mode', false)