diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-14 15:21:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-14 15:21:29 +0000 |
commit | 17a13515986ff14b768cf9678e6810bf92c33c05 (patch) | |
tree | 26acccf3ca362b3458ee43bdbf78fa21b8ebd9f2 /games/adventure/setup.c | |
parent | 28e461d672204f54b8eb68a590d36c23a32f9574 (diff) |
some cleanup from bde@freebsd
Diffstat (limited to 'games/adventure/setup.c')
-rw-r--r-- | games/adventure/setup.c | 4 |
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); } |