projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improved robustness of client/server encoding functions
[rocksndiamonds.git]
/
src
/
events.c
diff --git
a/src/events.c
b/src/events.c
index e07b8494cef2b9167b45382cb919bf5e69a3189f..13723bfa514da9ff8f78e499946907ad7d4729bd 100644
(file)
--- a/
src/events.c
+++ b/
src/events.c
@@
-108,7
+108,7
@@
static int FilterEvents(const Event *event)
{
SetMouseCursor(CURSOR_DEFAULT);
{
SetMouseCursor(CURSOR_DEFAULT);
-
DelayReached(&special_cursor_delay, 0
);
+
ResetDelayCounter(&special_cursor_delay
);
cursor_mode_last = CURSOR_DEFAULT;
}
cursor_mode_last = CURSOR_DEFAULT;
}
@@
-336,7
+336,7
@@
static void HandleMouseCursor(void)
// display normal pointer if mouse pressed
if (button_status != MB_RELEASED)
// display normal pointer if mouse pressed
if (button_status != MB_RELEASED)
-
DelayReached(&special_cursor_delay, 0
);
+
ResetDelayCounter(&special_cursor_delay
);
if (gfx.cursor_mode != CURSOR_PLAYFIELD &&
cursor_inside_playfield &&
if (gfx.cursor_mode != CURSOR_PLAYFIELD &&
cursor_inside_playfield &&
@@
-2091,6
+2091,8
@@
void HandleKey(Key key, int key_status)
{
key_action |= key_info[i].action | JOY_BUTTON_SNAP;
key_snap_action |= key_info[i].action;
{
key_action |= key_info[i].action | JOY_BUTTON_SNAP;
key_snap_action |= key_info[i].action;
+
+ tape.property_bits |= TAPE_PROPERTY_TAS_KEYS;
}
}
}
}
}
}
@@
-2411,7
+2413,7
@@
void HandleKey(Key key, int key_status)
switch (key)
{
case KSYM_Escape:
switch (key)
{
case KSYM_Escape:
- RequestQuitGame(
setup.ask_on_escape
);
+ RequestQuitGame(
TRUE
);
break;
default:
break;
default: