projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added loading and saving visible playfield size from/to tape files
[rocksndiamonds.git]
/
src
/
tape.c
diff --git
a/src/tape.c
b/src/tape.c
index 1d88941fedd31905322b33d03ae8d7828bd4b166..70791579eac89cadd48d15bdb70d83a4d3176a3f 100644
(file)
--- a/
src/tape.c
+++ b/
src/tape.c
@@
-894,10
+894,10
@@
byte *TapePlayAction(void)
action[i] = tape.pos[tape.counter].action[i];
#if DEBUG_TAPE_WHEN_PLAYING
action[i] = tape.pos[tape.counter].action[i];
#if DEBUG_TAPE_WHEN_PLAYING
-
printf(
"%05d", FrameCounter);
+
DebugContinued("",
"%05d", FrameCounter);
for (i = 0; i < MAX_TAPE_ACTIONS; i++)
for (i = 0; i < MAX_TAPE_ACTIONS; i++)
-
printf(
" %08x", action[i]);
-
printf(
"\n");
+
DebugContinued("",
" %08x", action[i]);
+
DebugContinued("tape:play",
"\n");
#endif
tape.set_centered_player = FALSE;
#endif
tape.set_centered_player = FALSE;
@@
-955,7
+955,7
@@
unsigned int GetTapeLengthFrames(void)
int i;
if (TAPE_IS_EMPTY(tape))
int i;
if (TAPE_IS_EMPTY(tape))
- return
(0)
;
+ return
0
;
for (i = 0; i < tape.length; i++)
tape_length_frames += tape.pos[i].delay;
for (i = 0; i < tape.length; i++)
tape_length_frames += tape.pos[i].delay;
@@
-1324,8
+1324,7
@@
void AutoPlayTapes(void)
global.autoplay_leveldir);
if (autoplay_leveldir == NULL)
global.autoplay_leveldir);
if (autoplay_leveldir == NULL)
- Error(ERR_EXIT, "no such level identifier: '%s'",
- global.autoplay_leveldir);
+ Fail("no such level identifier: '%s'", global.autoplay_leveldir);
leveldir_current = autoplay_leveldir;
leveldir_current = autoplay_leveldir;
@@
-1567,8
+1566,7
@@
void PatchTapes(void)
global.patchtapes_leveldir);
if (patchtapes_leveldir == NULL)
global.patchtapes_leveldir);
if (patchtapes_leveldir == NULL)
- Error(ERR_EXIT, "no such level identifier: '%s'",
- global.patchtapes_leveldir);
+ Fail("no such level identifier: '%s'", global.patchtapes_leveldir);
leveldir_current = patchtapes_leveldir;
leveldir_current = patchtapes_leveldir;
@@
-1713,7
+1711,7
@@
void CreateTapeButtons(void)
GDI_END);
if (gi == NULL)
GDI_END);
if (gi == NULL)
-
Error(ERR_EXIT,
"cannot create gadget");
+
Fail(
"cannot create gadget");
tape_gadget[id] = gi;
}
tape_gadget[id] = gi;
}