projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8e25ab
)
added auto-playing next level when touching scores screen on Android
author
Holger Schemel
<info@artsoft.org>
Sat, 16 Apr 2022 23:01:04 +0000
(
01:01
+0200)
committer
Holger Schemel
<info@artsoft.org>
Sat, 16 Apr 2022 23:01:04 +0000
(
01:01
+0200)
src/screens.c
patch
|
blob
|
history
diff --git
a/src/screens.c
b/src/screens.c
index 44ea613339df9dcad6089f980d15bb4cb04f431e..f578c05d233f24ac8454379b86bb18b66e79103f 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-4781,6
+4781,15
@@
static void HandleChooseTree(int mx, int my, int dx, int dy, int button,
return;
}
+#if defined(PLATFORM_ANDROID)
+ // touching the screen anywhere continues playing the next level
+ if ((mx || my) && scores.was_just_playing)
+ {
+ mx = my = 0;
+ button = MB_MENU_CHOICE;
+ }
+#endif
+
// any mouse click or direction input stops playing the next level
if ((mx || my || dx || dy) && scores.was_just_playing)
{