projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed wording of some request texts
[rocksndiamonds.git]
/
src
/
tape.c
diff --git
a/src/tape.c
b/src/tape.c
index eb825c8d98c49924fa69aa95e806bd63c20baa92..71f707ced8a8ed3e1ade522fbb0940379c54f387 100644
(file)
--- a/
src/tape.c
+++ b/
src/tape.c
@@
-994,6
+994,9
@@
byte *TapePlayAction(void)
TapeStopWarpForward();
TapeTogglePause(TAPE_TOGGLE_MANUAL);
TapeStopWarpForward();
TapeTogglePause(TAPE_TOGGLE_MANUAL);
+ if (setup.autorecord_after_replay)
+ TapeAppendRecording();
+
return NULL;
}
}
return NULL;
}
}
@@
-1004,6
+1007,9
@@
byte *TapePlayAction(void)
{
TapeStopWarpForward();
TapeTogglePause(TAPE_TOGGLE_MANUAL);
{
TapeStopWarpForward();
TapeTogglePause(TAPE_TOGGLE_MANUAL);
+
+ if (setup.autorecord_after_replay)
+ TapeAppendRecording();
}
else
{
}
else
{
@@
-1181,7
+1187,7
@@
void TapeQuickSave(void)
{
if (game_status == GAME_MODE_MAIN)
{
{
if (game_status == GAME_MODE_MAIN)
{
- Request("No game that c
an
be saved!", REQ_CONFIRM);
+ Request("No game that c
ould
be saved!", REQ_CONFIRM);
return;
}
return;
}
@@
-1189,12
+1195,19
@@
void TapeQuickSave(void)
if (game_status != GAME_MODE_PLAYING)
return;
if (game_status != GAME_MODE_PLAYING)
return;
+ if (!tape.recording)
+ {
+ Request("No recording that could be saved!", REQ_CONFIRM);
+
+ return;
+ }
+
if (tape.recording)
TapeHaltRecording(); // prepare tape for saving on-the-fly
if (TAPE_IS_EMPTY(tape))
{
if (tape.recording)
TapeHaltRecording(); // prepare tape for saving on-the-fly
if (TAPE_IS_EMPTY(tape))
{
- Request("No tape that c
an
be saved!", REQ_CONFIRM);
+ Request("No tape that c
ould
be saved!", REQ_CONFIRM);
return;
}
return;
}