projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reverted order of processing game modes for global animations clicks
[rocksndiamonds.git]
/
src
/
anim.c
diff --git
a/src/anim.c
b/src/anim.c
index 08abd6680cc7b2bc30b4e0ade4711ce7e3732667..dcd66e330f2862decf9856ccabd6c3ba97860a8b 100644
(file)
--- a/
src/anim.c
+++ b/
src/anim.c
@@
-2120,7
+2120,8
@@
static boolean InitGlobalAnim_Clicked(int mx, int my, int clicked_event)
int mode_nr;
int i;
int mode_nr;
int i;
- 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;
{
struct GlobalAnimControlInfo *ctrl = &global_anim_ctrl[mode_nr];
int anim_nr;