From: Christian Heller Date: Tue, 17 Sep 2013 03:15:26 +0000 (+0200) Subject: Center map on player at game start. X-Git-Tag: tce~958 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/static/%7B%7Bprefix%7D%7D/%7B%7Btodo.comment%7D%7D?a=commitdiff_plain;h=d9d4d6c4cecc44d25bf28861f663f95fe5d8e9a8;p=plomrogue Center map on player at game start. --- diff --git a/src/main.c b/src/main.c index 046ef1a..f261e39 100644 --- a/src/main.c +++ b/src/main.c @@ -187,6 +187,10 @@ int main(int argc, char *argv[]) sorted_wintoggle_and_activate(&world); err_winmem = "Trouble with draw_all_wins() in main()."; + /* Focus map on player. */ + struct Win * win_map = get_win_by_id(&world, 'm'); + map_center_player(&map, &player, win_map->frame.size); + /* Replay mode. */ int key; struct WinConf * wc;