diff options
author | tron <tron@openttd.org> | 2005-01-29 19:45:14 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-29 19:45:14 +0000 |
commit | 001aa8e4533a4a1dd7120b4b8300c698bae3519a (patch) | |
tree | 911339d12234fdbe85e78c906881ba0d7989b09c /main_gui.c | |
parent | 3c82a2b3c76da6933c8c0f75905f62795acb115a (diff) | |
download | openttd-001aa8e4533a4a1dd7120b4b8300c698bae3519a.tar.xz |
(svn r1722) -Feature: Bigger maps - anyone?
Diffstat (limited to 'main_gui.c')
-rw-r--r-- | main_gui.c | 8 |
1 files changed, 4 insertions, 4 deletions
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(); |