projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug with keyboard/joystick events unpausing MM style games
[rocksndiamonds.git]
/
src
/
events.c
diff --git
a/src/events.c
b/src/events.c
index 65b20da1cb634a22e5a6cc1e4c8ce39fdd8a1e9e..846527641a28506f152f75fd380bc3ff52bc4252 100644
(file)
--- a/
src/events.c
+++ b/
src/events.c
@@
-1824,7
+1824,7
@@
void HandleKey(Key key, int key_status)
else
stored_player[pnr].action &= ~key_action;
else
stored_player[pnr].action &= ~key_action;
- if (tape.single_step && tape.recording && tape.pausing)
+ if (tape.single_step && tape.recording && tape.pausing
&& !tape.use_mouse
)
{
if (key_status == KEY_PRESSED && key_action & KEY_MOTION)
{
{
if (key_status == KEY_PRESSED && key_action & KEY_MOTION)
{
@@
-2315,8
+2315,11
@@
void HandleJoystick()
}
case GAME_MODE_PLAYING:
}
case GAME_MODE_PLAYING:
+#if 0
+ // !!! causes immediate GameEnd() when solving MM level with keyboard !!!
if (tape.playing || keyboard)
newbutton = ((joy & JOY_BUTTON) != 0);
if (tape.playing || keyboard)
newbutton = ((joy & JOY_BUTTON) != 0);
+#endif
if (newbutton && AllPlayersGone)
{
if (newbutton && AllPlayersGone)
{
@@
-2325,7
+2328,7
@@
void HandleJoystick()
return;
}
return;
}
- if (tape.recording && tape.pausing)
+ if (tape.recording && tape.pausing
&& !tape.use_mouse
)
{
if (joystick & JOY_ACTION)
TapeTogglePause(TAPE_TOGGLE_MANUAL);
{
if (joystick & JOY_ACTION)
TapeTogglePause(TAPE_TOGGLE_MANUAL);