From: Christian Heller Date: Wed, 29 May 2013 22:27:04 +0000 (+0200) Subject: Restructured main() start. Start with empty log. X-Git-Tag: tce~1259 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/%7B%7Bdb.prefix%7D%7D/%7B%7Bdb.prefix%7D%7D/calendar?a=commitdiff_plain;h=c9b91ea7cb25ac97e736935b1f5f26d7f0d58ef6;p=plomrogue Restructured main() start. Start with empty log. --- diff --git a/roguelike.c b/roguelike.c index 3b92c11..0521ae9 100644 --- a/roguelike.c +++ b/roguelike.c @@ -220,6 +220,10 @@ void player_wait (struct World * world) { int main (int argc, char *argv[]) { struct World world; + init_keybindings(&world); + + world.log = calloc(1, sizeof(char)); + update_log (&world, " "); struct Player player; world.player = &player; struct Monster monster; @@ -234,10 +238,6 @@ int main (int argc, char *argv[]) { world.seed = time(NULL); world.turn = 1; } rrand(1, world.seed); - - init_keybindings(&world); - world.log = calloc(1, sizeof(char)); - update_log (&world, "Start!"); struct Map map = init_map(); world.map = ↦