viewport_width = part->graphic_info.width;
viewport_height = part->graphic_info.height;
- part->drawing_stage = DRAW_GLOBAL_ANIM_STAGE_2;
+ part->drawing_stage = DRAW_GLOBAL_ANIM_STAGE_3;
// do not use global animation mouse pointer when reloading artwork
if (global.anim_status != GAME_MODE_LOADING)
if (music == MUS_UNDEFINED)
return;
+ char *anim_music = getMusicInfoEntryFilename(music);
+ char *curr_music = getCurrentlyPlayingMusicFilename();
+
+ // do not stop music if global anim music differs from current music
+ if (!strEqual(curr_music, anim_music))
+ return;
+
StopMusic();
#if 0
InitGlobalAnim_Clicked(-1, -1, ANIM_CLICKED_RESET);
}
+void RestartGlobalAnimsByStatus(int status)
+{
+ int anim_status_last = global.anim_status;
+
+ global.anim_status = status;
+
+ // force restarting global animations by changed global animation status
+ SDLRedrawWindow();
+
+ global.anim_status = anim_status_last;
+}
+
boolean HandleGlobalAnimClicks(int mx, int my, int button, boolean force_click)
{
static boolean click_consumed = FALSE;