Added easy extension of custom merge results. Example fib merge rules added. Code altered to make use of this new style

This commit is contained in:
Tiehuis
2015-02-23 12:32:29 +13:00
parent 375cdeb7da
commit 6d247f282f
13 changed files with 127 additions and 82 deletions
+2
View File
@@ -64,6 +64,8 @@ void highscore_load(struct gamestate *g)
void highscore_save(struct gamestate *g)
{
/* Someone could make their own merge rules for highscores and this could be meaningless,
* howeverhighscores are in plaintext, so that isn't that much of a concern */
if (g->score < g->score_high || g->opts->grid_width != 4 || g->opts->grid_height != 4)
return;