src/main.c

changeset 189
444dfdf790b8
parent 188
bb967c8e51e9
child 190
c90386d55cb2
--- a/src/main.c	Mon Aug 24 14:31:37 2026 +0200
+++ b/src/main.c	Mon Aug 24 14:38:15 2026 +0200
@@ -671,7 +671,7 @@
                         uint8_t reason;
                         net_recieve_data(opponent, &reason, 1);
                         eval_move_failed_msg(reason);
-                    } else if (code == NETCODE_ACCEPT) {
+                    } else if (code == NETCODE_ACCEPT_MOVE) {
                         format_move(gamestate, &move);
                         apply_move(gamestate, &move);
                         /* switch to waiting, even when the game ended.
@@ -818,7 +818,7 @@
             if (code == VALID_MOVE_SEMANTICS) {
                 format_move(gamestate, &move);
                 apply_move(gamestate, &move);
-                net_send_code(opponent, NETCODE_ACCEPT);
+                net_send_code(opponent, NETCODE_ACCEPT_MOVE);
 
                 /* send a code for ending the game, if required */
                 bool endgame = true;

mercurial