src/chess/pgn.c

changeset 194
619f07c95894
parent 193
d1420f5c5704
--- a/src/chess/pgn.c	Tue Aug 25 18:35:18 2026 +0200
+++ b/src/chess/pgn.c	Tue Aug 25 18:59:18 2026 +0200
@@ -133,7 +133,7 @@
     
     char movestr[10];
     Move move;
-    uint8_t curcol = WHITE;
+    Color curcol = WHITE;
     bool movetext_ends_with_result = false;
     
     while (true) {
@@ -302,7 +302,7 @@
     return date;
 }
 
-const char *pgn_player_name(const GameState *gamestate, uint8_t color) {
+const char *pgn_player_name(const GameState *gamestate, Color color) {
     const char *name = color == WHITE ? gamestate->wname : gamestate->bname;
     return name[0] != '\0' ? name : "Anonymous";
 }

mercurial