projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed cheat for loading solution tape to quietly remove inserted tape
[rocksndiamonds.git]
/
src
/
tape.c
diff --git
a/src/tape.c
b/src/tape.c
index a8ac4cea12a6d9974f541302ac0f85fb3e782abc..f8e6a5e0594214d8f29f372d70023398113b04e2 100644
(file)
--- a/
src/tape.c
+++ b/
src/tape.c
@@
-1066,13
+1066,20
@@
void TapeQuickLoad()
void InsertSolutionTape()
{
void InsertSolutionTape()
{
- if (!TAPE_IS_EMPTY(tape))
+ if (!fileExists(getSolutionTapeFilename(level_nr)))
+ {
+ Request("No solution tape for this level!", REQ_CONFIRM);
+
return;
return;
+ }
+
+ // if tape recorder already contains a tape, remove it without asking
+ TapeErase();
LoadSolutionTape(level_nr);
if (TAPE_IS_EMPTY(tape))
LoadSolutionTape(level_nr);
if (TAPE_IS_EMPTY(tape))
- Request("
No solution tape for this level
!", REQ_CONFIRM);
+ Request("
Loading solution tape for this level failed
!", REQ_CONFIRM);
DrawCompleteVideoDisplay();
}
DrawCompleteVideoDisplay();
}