@@ -109,18 +109,6 @@ void handle_board_click(int board_x, int board_y) {
109109 // 현재 플레이어의 기물인지 확인
110110 team_t piece_team = piece -> team ;
111111
112- // 좌표 확인 메시지 (간단하게)
113- char coord_msg [64 ];
114- snprintf (coord_msg , sizeof (coord_msg ), "Selected: %c%d (board[%d][%d])" ,
115- 'a' + board_x , board_y + 1 , board_y , board_x );
116-
117- // 뮤텍스 잠금을 해제한 후 채팅 메시지 추가 (데드락 방지)
118- pthread_mutex_unlock (& screen_mutex );
119- add_chat_message_safe ("System" , coord_msg );
120-
121- // 뮤텍스 다시 잠금
122- pthread_mutex_lock (& screen_mutex );
123-
124112 // 현재 턴인지 확인
125113 if (game -> side_to_move != client -> game_state .local_team ) {
126114 char turn_msg [128 ];
@@ -184,10 +172,6 @@ void handle_board_click(int board_x, int board_y) {
184172
185173 // 서버로 이동 요청 전송
186174 if (send_move_request (from_coord , to_coord ) == 0 ) {
187- char move_msg [64 ];
188- snprintf (move_msg , sizeof (move_msg ), "Move request sent: %s -> %s" , from_coord , to_coord );
189- add_chat_message_safe ("System" , move_msg );
190-
191175 // 뮤텍스 다시 잠금하여 상태 변경
192176 pthread_mutex_lock (& screen_mutex );
193177 client -> piece_selected = false;
@@ -221,12 +205,6 @@ void handle_mouse_input(MEVENT *event) {
221205 if (client -> current_screen == SCREEN_GAME ) {
222206 int board_x , board_y ;
223207 if (coord_to_board_pos (event -> x , event -> y , & board_x , & board_y )) {
224- // 마우스 좌표 변환 디버그
225- char mouse_debug [256 ];
226- snprintf (mouse_debug , sizeof (mouse_debug ), "마우스 클릭: 화면(%d,%d) -> 보드(%d,%d)" ,
227- event -> x , event -> y , board_x , board_y );
228- add_chat_message_safe ("System" , mouse_debug );
229-
230208 handle_board_click (board_x , board_y );
231209 }
232210 }
@@ -409,9 +387,6 @@ bool handle_chess_notation(const char *notation) {
409387 to_coord [2 ] = '\0' ;
410388
411389 if (send_move_request (from_coord , to_coord ) == 0 ) {
412- char move_msg [64 ];
413- snprintf (move_msg , sizeof (move_msg ), "Move request sent: %s" , notation );
414- add_chat_message_safe ("System" , move_msg );
415390 return true;
416391 } else {
417392 add_chat_message_safe ("System" , "Failed to send move request." );
0 commit comments