From 92aac531c2fdc3e58c108a35e66f723360f46a9a Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 8 May 2008 11:50:34 +0000 Subject: (svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window. --- src/town_gui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/town_gui.cpp') diff --git a/src/town_gui.cpp b/src/town_gui.cpp index d67d42469..283cd448c 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -268,7 +268,7 @@ static const WindowDesc _town_authority_desc = { static void ShowTownAuthorityWindow(uint town) { - Window *w = AllocateWindowDescFront(&_town_authority_desc, town); + Window *w = AllocateWindowDescFront(&_town_authority_desc, town); if (w != NULL) { w->vscroll.cap = 5; @@ -397,7 +397,7 @@ void ShowTownViewWindow(TownID town) { Window *w; - w = AllocateWindowDescFront(&_town_view_desc, town); + w = AllocateWindowDescFront(&_town_view_desc, town); if (w != NULL) { w->flags4 |= WF_DISABLE_VP_SCROLL; @@ -576,7 +576,7 @@ static const WindowDesc _town_directory_desc = { void ShowTownDirectory() { - Window *w = AllocateWindowDescFront(&_town_directory_desc, 0); + Window *w = AllocateWindowDescFront(&_town_directory_desc, 0); if (w != NULL) { w->vscroll.cap = 16; @@ -705,6 +705,6 @@ static const WindowDesc _scen_edit_town_gen_desc = { void ShowBuildTownWindow() { if (_game_mode != GM_EDITOR && !IsValidPlayer(_current_player)) return; - AllocateWindowDescFront(&_scen_edit_town_gen_desc, 0); + AllocateWindowDescFront(&_scen_edit_town_gen_desc, 0); } -- cgit v1.2.3-54-g00ecf