From 001aa8e4533a4a1dd7120b4b8300c698bae3519a Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 29 Jan 2005 19:45:14 +0000 Subject: (svn r1722) -Feature: Bigger maps - anyone? --- main_gui.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'main_gui.c') diff --git a/main_gui.c b/main_gui.c index ab1fc3844..6fac303a3 100644 --- a/main_gui.c +++ b/main_gui.c @@ -40,7 +40,7 @@ static int _rename_what; static byte _terraform_size = 1; static byte _last_built_railtype; -extern void GenerateWorld(int mode); +extern void GenerateWorld(int mode, uint log_x, uint log_y); extern void GenerateIndustries(void); extern void GenerateTowns(void); @@ -1081,7 +1081,7 @@ static void ResetLandscape(void) _random_seeds[0][0] = InteractiveRandom(); _random_seeds[0][1] = InteractiveRandom(); - GenerateWorld(1); + GenerateWorld(1, _patches.map_x, _patches.map_y); MarkWholeScreenDirty(); } @@ -2389,14 +2389,14 @@ void SetupColorsAndInitialWindow(void) switch(_game_mode) { case GM_MENU: w = AllocateWindow(0, 0, width, height, MainWindowWndProc, 0, NULL); - AssignWindowViewport(w, 0, 0, width, height, 0x8080, 0); + AssignWindowViewport(w, 0, 0, width, height, TILE_XY(32, 32), 0); // w = AllocateWindowDesc(&_toolb_intro_desc); // w->flags4 &= ~WF_WHITE_BORDER_MASK; ShowSelectGameWindow(); break; case GM_NORMAL: w = AllocateWindow(0, 0, width, height, MainWindowWndProc, 0, NULL); - AssignWindowViewport(w, 0, 0, width, height, 0x8080, 0); + AssignWindowViewport(w, 0, 0, width, height, TILE_XY(32, 32), 0); ShowVitalWindows(); -- cgit v1.2.3-54-g00ecf