src/chess/game-info.h

changeset 126
d58b2abdd330
parent 122
e65d9b5e9324
--- a/src/chess/game-info.h	Wed May 20 15:52:17 2026 +0200
+++ b/src/chess/game-info.h	Fri May 22 18:34:02 2026 +0200
@@ -100,7 +100,8 @@
     bool checkmate;
     bool stalemate;
     bool remis;
-    bool resign;
+    bool wresign;
+    bool bresign;
     /** this flag is only supposed to be set when the opponent disconnects */
     bool ragequit;
     bool review;
@@ -108,8 +109,8 @@
 
 
 #define is_game_running(gamestate) !((gamestate)->checkmate || \
-    (gamestate)->resign || (gamestate)->stalemate || (gamestate)->remis || \
-    (gamestate)->review)
+    (gamestate)->wresign || (gamestate)->bresign || \
+    (gamestate)->stalemate || (gamestate)->remis || (gamestate)->review)
 
 #define last_move(gamestate) \
     ((gamestate)->moves[(gamestate)->movecount-1])

mercurial