- init_keybindings(&world);
- set_cleanup_flag(CLEANUP_KEYBINDINGS);
- struct WinMeta win_meta;
- char * err_winmem = "Trouble with init_win_meta() or draw_all_wins() in "
- "main().";
- exit_err(init_win_meta(screen, &win_meta), &world, err_winmem);
- world.wins.meta = &win_meta;
- struct Win win_keys = init_win(&win_meta,
- "Keys", 0, 29, &world, draw_keys_win);
- struct Win win_info = init_win(&win_meta,
- "Info", 3, 20, &world, draw_info_win);
- struct Win win_log = init_win(&win_meta,
- "Log", -4, 20, &world, draw_log_win);
- struct Win win_map = init_win(&win_meta,
- "Map", 0, -51, &world, draw_map_win);
- world.wins.keys = &win_keys;
- world.wins.log = &win_log;
- world.wins.info = &win_info;
- world.wins.map = &win_map;
- sorted_wintoggle(&world);
+ char * err_winmem = "Trouble with init_win_meta() in main ().";
+ exit_err(init_win_meta(screen, &world.wmeta), &world, err_winmem);
+ set_cleanup_flag(CLEANUP_WIN_META);
+ load_interface_conf(&world);
+ set_cleanup_flag(CLEANUP_INTERFACE_CONF);
+ err_winmem = "Trouble with draw_all_wins() in main().";
+
+ /* Focus map on player. */
+ struct MapObj * player = get_player(&world);
+ struct Win * win_map = get_win_by_id(&world, 'm');
+ map_center_object(&map, player, win_map->frame.size);