Increase number of games retained in history to 40
[capablanca.git] / lasker-2.2.3 / src / gamedb.c
index 666b5ed..82eef2e 100644 (file)
@@ -1216,6 +1216,7 @@ static void write_g_out(int g, char *file, int maxlines, int isDraw,
     type[1] = 'b';
   } else if (game_globals.garray[g].type == TYPE_WILD ||
             game_globals.garray[g].type == TYPE_KNIGHTMATE ||
+            game_globals.garray[g].type == TYPE_CAPABLANCA ||
             game_globals.garray[g].type == TYPE_GOTHIC) {
     wr = player_globals.parray[wp].w_stats.rating;
     br = player_globals.parray[bp].w_stats.rating;
@@ -1651,10 +1652,10 @@ void game_write_complete(int g, int isDraw, char *EndSymbol)
        
        sprintf(fname, "%s/player_data/%c/%s.%s", STATS_DIR,
                player_globals.parray[wp].login[0], player_globals.parray[wp].login, STATS_GAMES);
-       write_g_out(g, fname, 10, isDraw, EndSymbol, player_globals.parray[wp].name, &now);
+       write_g_out(g, fname, 40, isDraw, EndSymbol, player_globals.parray[wp].name, &now);
        sprintf(fname, "%s/player_data/%c/%s.%s", STATS_DIR,
                player_globals.parray[bp].login[0], player_globals.parray[bp].login, STATS_GAMES);
-       write_g_out(g, fname, 10, isDraw, EndSymbol, player_globals.parray[bp].name, &now);
+       write_g_out(g, fname, 40, isDraw, EndSymbol, player_globals.parray[bp].name, &now);
        
        if (isDraw)
                Result = -1;