projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-19981021-1
[rocksndiamonds.git]
/
src
/
events.c
diff --git
a/src/events.c
b/src/events.c
index d4ec480279066e2a8759ed0b82c1fd23d8cf8de3..976974ac58891e6b9c8db2bab1c9057e876dac75 100644
(file)
--- a/
src/events.c
+++ b/
src/events.c
@@
-263,7
+263,7
@@
void HandleClientMessageEvent(XClientMessageEvent *event)
{
if ((event->window == window) &&
(event->data.l[0] == XInternAtom(display, "WM_DELETE_WINDOW", FALSE)))
{
if ((event->window == window) &&
(event->data.l[0] == XInternAtom(display, "WM_DELETE_WINDOW", FALSE)))
-
game_status = EXITGAME
;
+
CloseAllAndExit(0)
;
}
void HandleButton(int mx, int my, int button)
}
void HandleButton(int mx, int my, int button)
@@
-773,7
+773,7
@@
void HandleJoystick()
{
static long joystickmove_delay = 0;
{
static long joystickmove_delay = 0;
- if (joystick && !button && !DelayReached(&joystickmove_delay,15))
+ if (joystick && !button && !DelayReached(&joystickmove_delay,15
0
))
newbutton = dx = dy = 0;
if (game_status==MAINMENU)
newbutton = dx = dy = 0;
if (game_status==MAINMENU)