Increase number of games retained in history to 40
authorH.G. Muller <h.g.muller@hccnet.nl>
Thu, 3 Nov 2011 16:07:46 +0000 (17:07 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Thu, 3 Nov 2011 16:08:35 +0000 (17:08 +0100)
Unfortunately this parameter is hard-coded in the server.

lasker-2.2.3/src/gamedb.c

index 0d1223f..82eef2e 100644 (file)
@@ -1652,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;