From f0b8b2fe7676cdf2f346d719aa6780b288f7ca4d Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 12 Jun 2018 19:39:48 +0200 Subject: [PATCH] fixed bug with wrong order of checking global animations for click events --- src/anim.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.34.1