projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed storing two strings in function for level filenames
[rocksndiamonds.git]
/
src
/
tape.c
diff --git
a/src/tape.c
b/src/tape.c
index f75bc897e6f4579f1908050253b3ce1c0c2c3f01..689f2bf2e0dfbae9fdeacaed1392a639da5c282a 100644
(file)
--- a/
src/tape.c
+++ b/
src/tape.c
@@
-600,7
+600,7
@@
void TapeStartRecording(int random_seed)
static void TapeStartGameRecording()
{
static void TapeStartGameRecording()
{
- StartGameActions(
options.network
, TRUE, level.random_seed);
+ StartGameActions(
network.enabled
, TRUE, level.random_seed);
}
static void TapeAppendRecording()
}
static void TapeAppendRecording()
@@
-979,7
+979,7
@@
static void TapeStopWarpForward()
static void TapeSingleStep()
{
static void TapeSingleStep()
{
- if (
options.network
)
+ if (
network.enabled
)
return;
if (!tape.pausing)
return;
if (!tape.pausing)
@@
-1079,12
+1079,18
@@
void TapeQuickLoad()
}
}
}
}
-boolean
Insert
SolutionTape()
+boolean
has
SolutionTape()
{
{
+ boolean tape_file_exists = fileExists(getSolutionTapeFilename(level_nr));
boolean level_has_tape = (level.game_engine_type == GAME_ENGINE_TYPE_SP &&
level.native_sp_level->demo.is_available);
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)
+ return (tape_file_exists || level_has_tape);
+}
+
+boolean InsertSolutionTape()
+{
+ if (!hasSolutionTape())
{
Request("No solution tape for this level!", REQ_CONFIRM);
{
Request("No solution tape for this level!", REQ_CONFIRM);