summaryrefslogtreecommitdiff
path: root/src/town_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-08 11:50:34 +0000
committerrubidium <rubidium@openttd.org>2008-05-08 11:50:34 +0000
commit23fc96c3e8c252edbf2e7c22cefab633a0474410 (patch)
tree23ad171b2093a5c5980b9d912bf60056102af9fa /src/town_gui.cpp
parent2eef026fe35b9236606062f7d8a59d5661a5c748 (diff)
downloadopenttd-23fc96c3e8c252edbf2e7c22cefab633a0474410.tar.xz
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r--src/town_gui.cpp8
1 files changed, 4 insertions, 4 deletions
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<Window>(&_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<Window>(&_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<Window>(&_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<Window>(&_scen_edit_town_gen_desc, 0);
}