fix that the clock is not redrawn when receiving TIMEOVER command

Fri, 17 Apr 2026 12:40:47 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 17 Apr 2026 12:40:47 +0200
changeset 104
0f69fe56a4cd
parent 103
a2a68fd9f6cc
child 105
a991ea61f0e2

fix that the clock is not redrawn when receiving TIMEOVER command

fixes #819

src/game.c file | annotate | diff | comparison | revisions
--- a/src/game.c	Fri Apr 17 12:24:03 2026 +0200
+++ b/src/game.c	Fri Apr 17 12:40:47 2026 +0200
@@ -406,8 +406,8 @@
             Move move;
             switch (code) {
             case NETCODE_TIMEOVER:
-                printw("\rYour opponent's time ran out - you win!");
-                clrtoeol();
+                /* redraw the time control */
+                timecontrol(gamestate, gameinfo);
                 return 1;
             case NETCODE_RESIGN:
                 gamestate->resign = 1;

mercurial