comparison rogue3/main.c @ 8:78df7025783b

Make sure all output appears when exiting
author edwarj4
date Fri, 23 Oct 2009 01:38:53 +0000
parents b4856d4d4c4e
children 949d558c2162
comparison
equal deleted inserted replaced
7:d388234c4ce9 8:78df7025783b
143 } 143 }
144 else 144 else
145 dnum = lowtime + md_getpid(); 145 dnum = lowtime + md_getpid();
146 146
147 if (wizard || env) 147 if (wizard || env)
148 printf("Hello %s, welcome to dungeon #%d", whoami, dnum); 148 printf("Hello %s, welcome to dungeon #%d\n", whoami, dnum);
149 else 149 else
150 printf("Hello %s, just a moment while I dig the dungeon...", whoami); 150 printf("Hello %s, just a moment while I dig the dungeon...\n", whoami);
151 151
152 fflush(stdout); 152 fflush(stdout);
153 seed = dnum; 153 seed = dnum;
154 init_player(); /* Roll up the rogue */ 154 init_player(); /* Roll up the rogue */
155 init_things(); /* Set up probabilities of things */ 155 init_things(); /* Set up probabilities of things */