Fix --tiles to have the correct number of tiles.

The tiles_width_count etc. actually mean "count minus one".
This commit is contained in:
Ari Koivula 2016-03-07 17:24:31 +02:00
parent 49ea2d7b7f
commit a350eb3a1e

View file

@ -589,8 +589,8 @@ int kvz_config_parse(kvz_config *cfg, const char *name, const char *value)
// Free split arrays incase they have already been set by another parameter. // Free split arrays incase they have already been set by another parameter.
FREE_POINTER(cfg->tiles_width_split); FREE_POINTER(cfg->tiles_width_split);
FREE_POINTER(cfg->tiles_height_split); FREE_POINTER(cfg->tiles_height_split);
cfg->tiles_width_count = width; cfg->tiles_width_count = width - 1;
cfg->tiles_height_count = height; cfg->tiles_height_count = height - 1;
return 1; return 1;
} }
else if OPT("wpp") else if OPT("wpp")