projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20040303-B-src
[rocksndiamonds.git]
/
src
/
tape.c
diff --git
a/src/tape.c
b/src/tape.c
index 880c4f9ee8d3d879282c540e4587a8c84c4a1344..f05a3b45d18b4499f8123bb4b0fa6c353e5ff361 100644
(file)
--- a/
src/tape.c
+++ b/
src/tape.c
@@
-687,6
+687,19
@@
void TapeQuickLoad()
}
}
}
}
+void InsertSolutionTape()
+{
+ if (!TAPE_IS_EMPTY(tape))
+ return;
+
+ LoadSolutionTape(level_nr);
+
+ if (TAPE_IS_EMPTY(tape))
+ Request("No solution tape for this level !", REQ_CONFIRM);
+
+ DrawCompleteVideoDisplay();
+}
+
/* ------------------------------------------------------------------------- *
* tape autoplay functions
/* ------------------------------------------------------------------------- *
* tape autoplay functions
@@
-762,14
+775,18
@@
void AutoPlayTape()
printf("Level %03d: ", level_nr);
LoadLevel(level_nr);
printf("Level %03d: ", level_nr);
LoadLevel(level_nr);
- if (level.no_
level
_file)
+ if (level.no_
valid
_file)
{
printf("(no level)\n");
continue;
}
{
printf("(no level)\n");
continue;
}
- LoadTape(level_nr);
+ LoadSolutionTape(level_nr);
+#if 1
+ if (tape.no_valid_file)
+#else
if (TAPE_IS_EMPTY(tape))
if (TAPE_IS_EMPTY(tape))
+#endif
{
printf("(no tape)\n");
continue;
{
printf("(no tape)\n");
continue;