comparison arogue7/main.c @ 147:301ed6992c2e

arogue7, xrogue: put newlines at the end of startup messages.
author John "Elwin" Edwards
date Wed, 20 May 2015 15:15:29 -0400
parents aac28331e71d
children cadff8f047a1
comparison
equal deleted inserted replaced
146:5a77931393f4 147:301ed6992c2e
173 lowtime = (int) time(&now); 173 lowtime = (int) time(&now);
174 dnum = (wizard && getenv("SEED") != NULL ? 174 dnum = (wizard && getenv("SEED") != NULL ?
175 atoi(getenv("SEED")) : 175 atoi(getenv("SEED")) :
176 lowtime + getpid()); 176 lowtime + getpid());
177 if (wizard) 177 if (wizard)
178 printf("Hello %s, welcome to dungeon #%d", whoami, dnum); 178 printf("Hello %s, welcome to dungeon #%d\n", whoami, dnum);
179 else 179 else
180 printf("Hello %s, just a moment while I dig the dungeon...", whoami); 180 printf("Hello %s, just a moment while I dig the dungeon...\n", whoami);
181 fflush(stdout); 181 fflush(stdout);
182 seed = dnum; 182 seed = dnum;
183 md_srand(seed); 183 md_srand(seed);
184 184
185 #ifdef PC7300 185 #ifdef PC7300