projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added special mode to continue from hall of fame when pressing "space" key
[rocksndiamonds.git]
/
src
/
events.c
diff --git
a/src/events.c
b/src/events.c
index d5f9963bd00a7a658b0a2029afa852d1c03a38e0..7a6ff377fd91440277c9db4986ad1e591c3dd430 100644
(file)
--- a/
src/events.c
+++ b/
src/events.c
@@
-2335,6
+2335,14
@@
void HandleKey(Key key, int key_status)
if (HandleGadgetsKeyInput(key))
return; // do not handle already processed keys again
if (HandleGadgetsKeyInput(key))
return; // do not handle already processed keys again
+ // special case: on "space" key, either continue playing or go to main menu
+ if (game_status == GAME_MODE_SCORES && key == KSYM_space)
+ {
+ HandleHallOfFame(0, 0, 0, 0, MB_MENU_CONTINUE);
+
+ return;
+ }
+
switch (game_status)
{
case GAME_MODE_PSEUDO_TYPENAME:
switch (game_status)
{
case GAME_MODE_PSEUDO_TYPENAME: