projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4a0a9d2
)
added printing envelope text when dumping level in debug mode
author
Holger Schemel
<info@artsoft.org>
Sun, 12 Jun 2022 17:39:20 +0000
(19:39 +0200)
committer
Holger Schemel
<info@artsoft.org>
Sun, 12 Jun 2022 17:39:20 +0000
(19:39 +0200)
src/files.c
patch
|
blob
|
history
diff --git
a/src/files.c
b/src/files.c
index 4a980dffc748708fd4485a8f9b72d4e89252ab4e..5c8b149d11b38db83fbac390b6c794ed393ada45 100644
(file)
--- a/
src/files.c
+++ b/
src/files.c
@@
-7798,6
+7798,28
@@
void DumpLevel(struct LevelInfo *level)
Print("use step counter: %s\n", (level->use_step_counter ? "yes" : "no"));
Print("rate time over score: %s\n", (level->rate_time_over_score ? "yes" : "no"));
Print("use step counter: %s\n", (level->use_step_counter ? "yes" : "no"));
Print("rate time over score: %s\n", (level->rate_time_over_score ? "yes" : "no"));
+ if (options.debug)
+ {
+ int i, j;
+
+ for (i = 0; i < NUM_ENVELOPES; i++)
+ {
+ char *text = level->envelope[i].text;
+ int text_len = strlen(text);
+ boolean has_text = FALSE;
+
+ for (j = 0; j < text_len; j++)
+ if (text[j] != ' ' && text[j] != '\n')
+ has_text = TRUE;
+
+ if (has_text)
+ {
+ Print("\n");
+ Print("Envelope %d:\n'%s'\n", i + 1, text);
+ }
+ }
+ }
+
PrintLine("-", 79);
}
PrintLine("-", 79);
}