X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=a7657670cc1ee8e72c9db46cf963186d6e33ea75;hb=HEAD;hp=45945dcd2d2f7868056be394ef789c4b34bf293c;hpb=895d5cb33db251c933445778400bb3e50b76d4ab;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index 45945dcd..62a5d0ff 100644 --- a/src/init.c +++ b/src/init.c @@ -722,23 +722,14 @@ static void InitGlobalAnimGraphicInfo(void) struct GraphicInfo *g = &graphic_info[graphic]; struct FileInfo *image = getImageListEntryFromImageID(graphic); char **parameter_raw = image->parameter; - int p1 = GFX_ARG_DRAW_MASKED; - int p2 = GFX_ARG_DRAW_ORDER; - int draw_masked = get_graphic_parameter_value(parameter_raw[p1], - image_config_suffix[p1].token, - image_config_suffix[p1].type); - int draw_order = get_graphic_parameter_value(parameter_raw[p2], - image_config_suffix[p2].token, - image_config_suffix[p2].type); + int p = GFX_ARG_DRAW_MASKED; + int draw_masked = get_graphic_parameter_value(parameter_raw[p], + image_config_suffix[p].token, + image_config_suffix[p].type); // if ".draw_masked" parameter is undefined, use default value "TRUE" if (draw_masked == ARG_UNDEFINED_VALUE) g->draw_masked = TRUE; - - // if ".draw_order" parameter is undefined, set back to "undefined" - // (used to be able to inherit draw order from main animation later) - if (draw_order == ARG_UNDEFINED_VALUE) - g->draw_order = ARG_UNDEFINED_VALUE; } #if 0 @@ -1666,10 +1657,6 @@ static void set_graphic_parameters_ext(int graphic, int *parameter, if (parameter[GFX_ARG_DRAW_MASKED] != ARG_UNDEFINED_VALUE) g->draw_masked = parameter[GFX_ARG_DRAW_MASKED]; - // use a different default value for global animations (corrected later) - if (graphic >= IMG_GLOBAL_ANIM_1 && graphic <= IMG_GLOBAL_ANIM_32) - g->draw_order = ARG_UNDEFINED_VALUE; - // used for toon animations and global animations if (parameter[GFX_ARG_DRAW_ORDER] != ARG_UNDEFINED_VALUE) g->draw_order = parameter[GFX_ARG_DRAW_ORDER]; @@ -6490,8 +6477,8 @@ void DisplayExitMessage(char *format, va_list ap) BackToFront(); - // deactivate toons on error message screen - setup.toons = FALSE; + // deactivate toons and global animations on error message screen + setup.global_animations = FALSE; WaitForEventToContinue(); } @@ -6684,7 +6671,7 @@ static boolean WaitForApiThreads(void) return TRUE; // deactivate global animations (not accessible in game state "loading") - setup.toons = FALSE; + setup.global_animations = FALSE; // set game state to "loading" to be able to show busy animation SetGameStatus(GAME_MODE_LOADING);