projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7ac743d
)
changed cheat for loading solution tape to quietly remove inserted tape
author
Holger Schemel
<info@artsoft.org>
Thu, 7 Dec 2017 20:43:14 +0000
(21:43 +0100)
committer
Holger Schemel
<info@artsoft.org>
Thu, 7 Dec 2017 20:43:14 +0000
(21:43 +0100)
src/tape.c
patch
|
blob
|
history
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();
}