X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=5a2ff12a65a5f20c5b1baa5a66bed2ad39388044;hb=14f10ebaf067872a8a1412476c8923cb2414aee4;hp=ee8df89223c4cf391781c92fc67f19e46470bc0c;hpb=e77c26313b1a1e3ddd884cdda005cb6758c1a100;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index ee8df892..5a2ff12a 100644 --- a/src/init.c +++ b/src/init.c @@ -112,6 +112,12 @@ void InitGadgets() inline void InitElementSmallImagesScaledUp(int graphic) { +#if 0 + struct FileInfo *fi = getImageListEntryFromImageID(graphic); + + printf("::: '%s' -> '%s'\n", fi->token, fi->filename); +#endif + CreateImageWithSmallImages(graphic, graphic_info[graphic].scale_up_factor); } @@ -4408,7 +4414,7 @@ static void InitGlobal() element_info[i].token_name = element_name_info[i].token_name; element_info[i].class_name = element_name_info[i].class_name; - element_info[i].editor_description=element_name_info[i].editor_description; + element_info[i].editor_description= element_name_info[i].editor_description; #if 0 printf("%04d: %s\n", i, element_name_info[i].token_name); @@ -4428,6 +4434,19 @@ static void InitGlobal() ActiveElement[element] = element_active; } + /* always start with reliable default values (all buttons) */ + for (i = 0; i < NUM_IMAGE_FILES; i++) + ActiveButton[i] = i; + + /* now add all entries that have an active state (active buttons) */ + for (i = 0; button_with_active_state[i].button != -1; i++) + { + int button = button_with_active_state[i].button; + int button_active = button_with_active_state[i].button_active; + + ActiveButton[button] = button_active; + } + /* always start with reliable default values (all fonts) */ for (i = 0; i < NUM_FONTS; i++) ActiveFont[i] = i; @@ -4447,6 +4466,12 @@ static void InitGlobal() global.frames_per_second = 0; global.fps_slowdown = FALSE; global.fps_slowdown_factor = 1; + + global.border_status = GAME_MODE_MAIN; +#if 0 + global.fading_status = GAME_MODE_MAIN; + global.fading_type = TYPE_ENTER_MENU; +#endif } void Execute_Command(char *command)