mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-10 08:00:05 +00:00
(svn r27140) -Codechange: Fix typo in GenenerateLandscapeWindowMode (chillcore)
This commit is contained in:
parent
d2400c8fee
commit
4b2db6e649
@ -37,7 +37,7 @@
|
|||||||
extern void MakeNewgameSettingsLive();
|
extern void MakeNewgameSettingsLive();
|
||||||
|
|
||||||
/** Enum for the modes we can generate in. */
|
/** Enum for the modes we can generate in. */
|
||||||
enum GenenerateLandscapeWindowMode {
|
enum GenerateLandscapeWindowMode {
|
||||||
GLWM_GENERATE, ///< Generate new game.
|
GLWM_GENERATE, ///< Generate new game.
|
||||||
GLWM_HEIGHTMAP, ///< Load from heightmap.
|
GLWM_HEIGHTMAP, ///< Load from heightmap.
|
||||||
GLWM_SCENARIO, ///< Generate flat land.
|
GLWM_SCENARIO, ///< Generate flat land.
|
||||||
@ -258,7 +258,7 @@ static const NWidgetPart _nested_heightmap_load_widgets[] = {
|
|||||||
EndContainer(),
|
EndContainer(),
|
||||||
};
|
};
|
||||||
|
|
||||||
static void StartGeneratingLandscape(GenenerateLandscapeWindowMode mode)
|
static void StartGeneratingLandscape(GenerateLandscapeWindowMode mode)
|
||||||
{
|
{
|
||||||
DeleteAllNonVitalWindows();
|
DeleteAllNonVitalWindows();
|
||||||
ClearErrorMessages();
|
ClearErrorMessages();
|
||||||
@ -278,7 +278,7 @@ static void StartGeneratingLandscape(GenenerateLandscapeWindowMode mode)
|
|||||||
|
|
||||||
static void LandscapeGenerationCallback(Window *w, bool confirmed)
|
static void LandscapeGenerationCallback(Window *w, bool confirmed)
|
||||||
{
|
{
|
||||||
if (confirmed) StartGeneratingLandscape((GenenerateLandscapeWindowMode)w->window_number);
|
if (confirmed) StartGeneratingLandscape((GenerateLandscapeWindowMode)w->window_number);
|
||||||
}
|
}
|
||||||
|
|
||||||
static DropDownList *BuildMapsizeDropDown()
|
static DropDownList *BuildMapsizeDropDown()
|
||||||
@ -312,7 +312,7 @@ struct GenerateLandscapeWindow : public Window {
|
|||||||
uint x;
|
uint x;
|
||||||
uint y;
|
uint y;
|
||||||
char name[64];
|
char name[64];
|
||||||
GenenerateLandscapeWindowMode mode;
|
GenerateLandscapeWindowMode mode;
|
||||||
|
|
||||||
GenerateLandscapeWindow(WindowDesc *desc, WindowNumber number = 0) : Window(desc)
|
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->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 */
|
/* Disable town, industry and trees in SE */
|
||||||
this->SetWidgetDisabledState(WID_GL_TOWN_PULLDOWN, _game_mode == GM_EDITOR);
|
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)
|
_nested_heightmap_load_widgets, lengthof(_nested_heightmap_load_widgets)
|
||||||
);
|
);
|
||||||
|
|
||||||
static void _ShowGenerateLandscape(GenenerateLandscapeWindowMode mode)
|
static void _ShowGenerateLandscape(GenerateLandscapeWindowMode mode)
|
||||||
{
|
{
|
||||||
uint x = 0;
|
uint x = 0;
|
||||||
uint y = 0;
|
uint y = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user