X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ffiles.c;h=83e7b0bbc5e561e50ee0a1b2f89c8f2f5bf3967b;hb=c145af8280c5ad22978e42621bbe5c0f3a8ada3c;hp=d66112040791ea95b29cef519ade8584865c1aad;hpb=0d7a16964bdac425962c0c0bcaa7488d9664c8d2;p=rocksndiamonds.git diff --git a/src/files.c b/src/files.c index d6611204..83e7b0bb 100644 --- a/src/files.c +++ b/src/files.c @@ -1929,16 +1929,19 @@ void LoadSpecialMenuDesignSettings() if ((setup_file_hash = loadSetupFileHash(filename)) == NULL) return; - /* special case: initialize with default values that may be overwrittem */ + /* special case: initialize with default values that may be overwritten */ for (i=0; i < NUM_SPECIAL_GFX_ARGS; i++) { char *value_x = getHashEntry(setup_file_hash, "menu.draw_xoffset"); char *value_y = getHashEntry(setup_file_hash, "menu.draw_yoffset"); + char *list_size = getHashEntry(setup_file_hash, "menu.list_size"); if (value_x != NULL) menu.draw_xoffset[i] = get_integer_from_string(value_x); if (value_y != NULL) menu.draw_yoffset[i] = get_integer_from_string(value_y); + if (list_size != NULL) + menu.list_size[i] = get_integer_from_string(list_size); } /* read (and overwrite with) values that may be specified in config file */