projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug which could cause saving tapes with a wrong level number filename
[rocksndiamonds.git]
/
src
/
tape.c
diff --git
a/src/tape.c
b/src/tape.c
index f8e6a5e0594214d8f29f372d70023398113b04e2..831659b62cb881ac47353c1e37992d3917c8d57b 100644
(file)
--- a/
src/tape.c
+++ b/
src/tape.c
@@
-1066,7
+1066,10
@@
void TapeQuickLoad()
void InsertSolutionTape()
{
void InsertSolutionTape()
{
- if (!fileExists(getSolutionTapeFilename(level_nr)))
+ boolean level_has_tape = (level.game_engine_type == GAME_ENGINE_TYPE_SP &&
+ level.native_sp_level->demo.is_available);
+
+ if (!fileExists(getSolutionTapeFilename(level_nr)) && !level_has_tape)
{
Request("No solution tape for this level!", REQ_CONFIRM);
{
Request("No solution tape for this level!", REQ_CONFIRM);
@@
-1391,7
+1394,7
@@
static void HandleTapeButtonsExt(int id)
else
{
if (tape.changed)
else
{
if (tape.changed)
- SaveTapeChecked(
tape.
level_nr);
+ SaveTapeChecked(level_nr);
TapeErase();
}
TapeErase();
}