src/chess/game-info.h

changeset 122
e65d9b5e9324
parent 113
5f58df30d422
--- a/src/chess/game-info.h	Tue May 19 17:59:24 2026 +0200
+++ b/src/chess/game-info.h	Tue May 19 18:03:06 2026 +0200
@@ -101,11 +101,15 @@
     bool stalemate;
     bool remis;
     bool resign;
+    /** this flag is only supposed to be set when the opponent disconnects */
+    bool ragequit;
+    bool review;
 } GameState;
 
 
 #define is_game_running(gamestate) !((gamestate)->checkmate || \
-    (gamestate)->resign || (gamestate)->stalemate || (gamestate)->remis)
+    (gamestate)->resign || (gamestate)->stalemate || (gamestate)->remis || \
+    (gamestate)->review)
 
 #define last_move(gamestate) \
     ((gamestate)->moves[(gamestate)->movecount-1])

mercurial