summaryrefslogtreecommitdiff
path: root/games/adventure/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/adventure/setup.c')
-rw-r--r--games/adventure/setup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/games/adventure/setup.c b/games/adventure/setup.c
index 042e1e04226..c5c4a96c182 100644
--- a/games/adventure/setup.c
+++ b/games/adventure/setup.c
@@ -97,6 +97,8 @@ char *argv[];
while ((c = getc(infile)) != EOF)
{
+ if (count++ % LINE == 0)
+ printf("\n\t");
if (linestart && c == ' ') /* Convert first spaces to tab */
{
printf("0x%02x,", ('\t' ^ random()) & 0xFF);
@@ -113,7 +115,7 @@ char *argv[];
linestart = YES; /* Ready to convert spaces again */
break;
}
- if (count++ % LINE == 0) /* Finished a line? */
+ if (count++ % LINE == 0)
printf("\n\t");
printf("0x%02x,", (c ^ random()) & 0xFF);
}