From: Holger Schemel Date: Tue, 12 Jun 2018 17:39:48 +0000 (+0200) Subject: fixed bug with wrong order of checking global animations for click events X-Git-Tag: 4.1.1.0~151 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=f0b8b2fe7676cdf2f346d719aa6780b288f7ca4d fixed bug with wrong order of checking global animations for click events --- diff --git a/src/anim.c b/src/anim.c index 70600166..23b26495 100644 --- a/src/anim.c +++ b/src/anim.c @@ -1469,7 +1469,8 @@ static boolean InitGlobalAnim_Clicked(int mx, int my, boolean clicked) boolean any_part_clicked = FALSE; int mode_nr; - for (mode_nr = 0; mode_nr < NUM_GAME_MODES; mode_nr++) + // check game modes in reverse draw order (to stop when clicked) + for (mode_nr = NUM_GAME_MODES - 1; mode_nr >= 0; mode_nr--) { struct GlobalAnimControlInfo *ctrl = &global_anim_ctrl[mode_nr]; int anim_nr;