diff --git a/mosaic.c b/mosaic.c index 15aa96d..4f73e8f 100644 --- a/mosaic.c +++ b/mosaic.c @@ -22,6 +22,7 @@ #include "puzzles.h" #define DEFAULT_SIZE 10 +#define DEFAULT_AGGRESSIVENESS true #define MAX_TILES 10000 #define MAX_TILES_ERROR "Maximum size is 10000 tiles" #define DEFAULT_TILE_SIZE 32 @@ -138,7 +139,7 @@ static game_params *default_params(void) ret->width = DEFAULT_SIZE; ret->height = DEFAULT_SIZE; - ret->aggressive = true; + ret->aggressive = DEFAULT_AGGRESSIVENESS; return ret; } @@ -196,7 +197,7 @@ static char *encode_params(const game_params *params, bool full) int pos = 0; pos += sprintf(encoded + pos, "%dx%d", params->width, params->height); if (full) { - if (params->aggressive) + if (params->aggressive != DEFAULT_AGGRESSIVENESS) pos += sprintf(encoded + pos, "h%d", params->aggressive); } return dupstr(encoded);