Index: client/Client/main.cpp
===================================================================
--- client/Client/main.cpp	(revision 88cdae2c529c41e738326d4cd803f241906d1338)
+++ client/Client/main.cpp	(revision ad5d122790401d2d049952e17ca5f88fba109348)
@@ -303,16 +303,13 @@
       }
       else if(ev.type == ALLEGRO_EVENT_MOUSE_BUTTON_UP) {
-         mapPlayers[curPlayerId].pos.x = ev.mouse.x;
-         mapPlayers[curPlayerId].pos.y = ev.mouse.y;
-
-         // send the server a MSG_TYPE_PLAYER_MOVE message
-         msgTo.type = MSG_TYPE_PLAYER_MOVE;
-
-         ostringstream oss;
-         oss << ev.mouse.x;
-         oss << ev.mouse.y;
-
-         memcpy(msgTo.buffer, oss.str().c_str(), oss.str().length());
-         sendMessage(&msgTo, sock, &server);
+         if(wndCurrent == wndMain) {
+            msgTo.type = MSG_TYPE_PLAYER_MOVE;
+
+            memcpy(msgTo.buffer, &curPlayerId, 4);
+            memcpy(msgTo.buffer+4, &ev.mouse.x, 4);
+            memcpy(msgTo.buffer+8, &ev.mouse.y, 4);
+
+            sendMessage(&msgTo, sock, &server);
+         }
       }
 
