summaryrefslogtreecommitdiff
path: root/src/genworld.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-11-15 18:28:00 +0000
committerrubidium <rubidium@openttd.org>2007-11-15 18:28:00 +0000
commitecdb16de42874125991b1e770616e46e9c4d24bb (patch)
tree4bd44853b9e7e9c29ae281bd657c1996f6290daa /src/genworld.cpp
parentc5a9fd4559bd6858f4f11820e5e994cca1afa2a5 (diff)
downloadopenttd-ecdb16de42874125991b1e770616e46e9c4d24bb.tar.xz
(svn r11440) -Codechange: replace magic numbers with enumified WindowHighlightMode constants. Patch by SmatZ.
Diffstat (limited to 'src/genworld.cpp')
-rw-r--r--src/genworld.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/genworld.cpp b/src/genworld.cpp
index 9d1d92cd9..46dce7dd7 100644
--- a/src/genworld.cpp
+++ b/src/genworld.cpp
@@ -20,6 +20,7 @@
#include "settings.h"
#include "heightmap.h"
#include "date.h"
+#include "viewport.h"
void GenerateClearTile();
void GenerateIndustries();
@@ -85,7 +86,7 @@ static void *_GenerateWorld(void *arg)
if (_patches.generation_seed == GENERATE_NEW_SEED) _patches.generation_seed = _patches_newgame.generation_seed = InteractiveRandom();
_random_seeds[0][0] = _random_seeds[0][1] = _patches.generation_seed;
SetGeneratingWorldProgress(GWP_MAP_INIT, 2);
- SetObjectToPlace(SPR_CURSOR_ZZZ, PAL_NONE, 0, WC_MAIN_WINDOW, 0);
+ SetObjectToPlace(SPR_CURSOR_ZZZ, PAL_NONE, VHM_NONE, WC_MAIN_WINDOW, 0);
IncreaseGeneratingWorldProgress(GWP_MAP_INIT);
/* Must start economy early because of the costs. */