projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20020403-1-src
[rocksndiamonds.git]
/
src
/
events.c
diff --git
a/src/events.c
b/src/events.c
index c002c78ebbd6588dafeb1e64a90da9f801ba67ae..a4b60829e90a139f35aeff1bc19a9cbfab278b3e 100644
(file)
--- a/
src/events.c
+++ b/
src/events.c
@@
-477,6
+477,7
@@
void HandleKey(Key key, int key_status)
/* allow quick escape to the main menu with the Escape key */
if (key == KSYM_Escape &&
game_status != MAINMENU &&
/* allow quick escape to the main menu with the Escape key */
if (key == KSYM_Escape &&
game_status != MAINMENU &&
+ game_status != PLAYING &&
game_status != LEVELED &&
game_status != CHOOSELEVEL &&
game_status != SETUP)
game_status != LEVELED &&
game_status != CHOOSELEVEL &&
game_status != SETUP)
@@
-592,6
+593,9
@@
void HandleKey(Key key, int key_status)
{
switch(key)
{
{
switch(key)
{
+ case KSYM_Escape:
+ RequestQuitGame();
+ break;
#ifdef DEBUG
case KSYM_0:
#ifdef DEBUG
case KSYM_0: