summaryrefslogtreecommitdiff
path: root/src/genworld_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
commit92aac531c2fdc3e58c108a35e66f723360f46a9a (patch)
tree23ad171b2093a5c5980b9d912bf60056102af9fa /src/genworld_gui.cpp
parent51cda2252ceb088d75f25074f1e83e8eec5f18b6 (diff)
downloadopenttd-92aac531c2fdc3e58c108a35e66f723360f46a9a.tar.xz
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
Diffstat (limited to 'src/genworld_gui.cpp')
-rw-r--r--src/genworld_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp
index 01fc43d31..da8b450f8 100644
--- a/src/genworld_gui.cpp
+++ b/src/genworld_gui.cpp
@@ -577,7 +577,7 @@ static void _ShowGenerateLandscape(glwp_modes mode)
if (!GetHeightmapDimensions(_file_to_saveload.name, &x, &y)) return;
}
- Window *w = AllocateWindowDescFront((mode == GLWP_HEIGHTMAP) ? &_heightmap_load_desc : &_generate_landscape_desc, mode);
+ Window *w = AllocateWindowDescFront<Window>((mode == GLWP_HEIGHTMAP) ? &_heightmap_load_desc : &_generate_landscape_desc, mode);
if (w == NULL) return;
@@ -802,7 +802,7 @@ static const WindowDesc _create_scenario_desc = {
void ShowCreateScenario()
{
DeleteWindowByClass(WC_GENERATE_LANDSCAPE);
- AllocateWindowDescFront(&_create_scenario_desc, GLWP_SCENARIO);
+ AllocateWindowDescFront<Window>(&_create_scenario_desc, GLWP_SCENARIO);
}
@@ -896,7 +896,7 @@ void PrepareGenerateWorldProgress()
*/
void ShowGenerateWorldProgress()
{
- AllocateWindowDescFront(&_show_terrain_progress_desc, 0);
+ AllocateWindowDescFront<Window>(&_show_terrain_progress_desc, 0);
}
static void _SetGeneratingWorldProgress(gwp_class cls, uint progress, uint total)