projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c64a133
)
fixed bug with wrong order of checking global animations for click events
author
Holger Schemel
<info@artsoft.org>
Tue, 12 Jun 2018 17:39:48 +0000
(19:39 +0200)
committer
Holger Schemel
<info@artsoft.org>
Tue, 12 Jun 2018 17:40:17 +0000
(19:40 +0200)
src/anim.c
patch
|
blob
|
history
diff --git
a/src/anim.c
b/src/anim.c
index 70600166488ce6cd34396635e7b5cedf467d9e45..23b26495307563590dbb0136b8ca4765fc0a229b 100644
(file)
--- 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;