From c9b91ea7cb25ac97e736935b1f5f26d7f0d58ef6 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 30 May 2013 00:27:04 +0200 Subject: [PATCH] Restructured main() start. Start with empty log. --- roguelike.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 = ↦ -- 2.30.2