summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2015-02-08 21:05:48 +0000
committeralberth <alberth@openttd.org>2015-02-08 21:05:48 +0000
commit4b2db6e64985195ba7ad4588ef016375500cb2d6 (patch)
tree82ada16a55dcf27157bc55881669a123bd555d57 /src
parentd2400c8fee7772898429ebf48d851bbc78f5f324 (diff)
downloadopenttd-4b2db6e64985195ba7ad4588ef016375500cb2d6.tar.xz
(svn r27140) -Codechange: Fix typo in GenenerateLandscapeWindowMode (chillcore)
Diffstat (limited to 'src')
-rw-r--r--src/genworld_gui.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp
index 27aac9dc6..1e9485b5f 100644
--- a/src/genworld_gui.cpp
+++ b/src/genworld_gui.cpp
@@ -37,7 +37,7 @@
extern void MakeNewgameSettingsLive();
/** Enum for the modes we can generate in. */
-enum GenenerateLandscapeWindowMode {
+enum GenerateLandscapeWindowMode {
GLWM_GENERATE, ///< Generate new game.
GLWM_HEIGHTMAP, ///< Load from heightmap.
GLWM_SCENARIO, ///< Generate flat land.
@@ -258,7 +258,7 @@ static const NWidgetPart _nested_heightmap_load_widgets[] = {
EndContainer(),
};
-static void StartGeneratingLandscape(GenenerateLandscapeWindowMode mode)
+static void StartGeneratingLandscape(GenerateLandscapeWindowMode mode)
{
DeleteAllNonVitalWindows();
ClearErrorMessages();
@@ -278,7 +278,7 @@ static void StartGeneratingLandscape(GenenerateLandscapeWindowMode mode)
static void LandscapeGenerationCallback(Window *w, bool confirmed)
{
- if (confirmed) StartGeneratingLandscape((GenenerateLandscapeWindowMode)w->window_number);
+ if (confirmed) StartGeneratingLandscape((GenerateLandscapeWindowMode)w->window_number);
}
static DropDownList *BuildMapsizeDropDown()
@@ -312,7 +312,7 @@ struct GenerateLandscapeWindow : public Window {
uint x;
uint y;
char name[64];
- GenenerateLandscapeWindowMode mode;
+ GenerateLandscapeWindowMode mode;
GenerateLandscapeWindow(WindowDesc *desc, WindowNumber number = 0) : Window(desc)
{
@@ -320,7 +320,7 @@ struct GenerateLandscapeWindow : public Window {
this->LowerWidget(_settings_newgame.game_creation.landscape + WID_GL_TEMPERATE);
- this->mode = (GenenerateLandscapeWindowMode)this->window_number;
+ this->mode = (GenerateLandscapeWindowMode)this->window_number;
/* Disable town, industry and trees in SE */
this->SetWidgetDisabledState(WID_GL_TOWN_PULLDOWN, _game_mode == GM_EDITOR);
@@ -820,7 +820,7 @@ static WindowDesc _heightmap_load_desc(
_nested_heightmap_load_widgets, lengthof(_nested_heightmap_load_widgets)
);
-static void _ShowGenerateLandscape(GenenerateLandscapeWindowMode mode)
+static void _ShowGenerateLandscape(GenerateLandscapeWindowMode mode)
{
uint x = 0;
uint y = 0;