Loading

GenerateLandscapeWindowMo

  1. # HG changeset patch
  2. # User chillcore
  3. # Date 1423428031 -3600
  4. #      zo feb 08 21:40:31 2015 +0100
  5. # Node ID 626e3398621f6061a450cce02f559bbdd177665b
  6. # Parent  b09465775017241a6324cc6af6f71c5665445100
  7. fix: spelling of function name GenerateLandscapeMode
  8.  
  9. diff -r b09465775017 -r 626e3398621f src/genworld_gui.cpp
  10. --- a/src/genworld_gui.cpp  vr feb 06 21:56:50 2015 +0000
  11. +++ b/src/genworld_gui.cpp  zo feb 08 21:40:31 2015 +0100
  12. @@ -37,7 +37,7 @@
  13.  extern void MakeNewgameSettingsLive();
  14.  
  15.  /** Enum for the modes we can generate in. */
  16. -enum GenenerateLandscapeWindowMode {
  17. +enum GenerateLandscapeWindowMode {
  18.     GLWM_GENERATE,  ///< Generate new game.
  19.     GLWM_HEIGHTMAP, ///< Load from heightmap.
  20.     GLWM_SCENARIO,  ///< Generate flat land.
  21. @@ -258,7 +258,7 @@
  22.     EndContainer(),
  23.  };
  24.  
  25. -static void StartGeneratingLandscape(GenenerateLandscapeWindowMode mode)
  26. +static void StartGeneratingLandscape(GenerateLandscapeWindowMode mode)
  27.  {
  28.     DeleteAllNonVitalWindows();
  29.     ClearErrorMessages();
  30. @@ -278,7 +278,7 @@
  31.  
  32.  static void LandscapeGenerationCallback(Window *w, bool confirmed)
  33.  {
  34. -   if (confirmed) StartGeneratingLandscape((GenenerateLandscapeWindowMode)w->window_number);
  35. +   if (confirmed) StartGeneratingLandscape((GenerateLandscapeWindowMode)w->window_number);
  36.  }
  37.  
  38.  static DropDownList *BuildMapsizeDropDown()
  39. @@ -312,7 +312,7 @@
  40.     uint x;
  41.     uint y;
  42.     char name[64];
  43. -   GenenerateLandscapeWindowMode mode;
  44. +   GenerateLandscapeWindowMode mode;
  45.  
  46.     GenerateLandscapeWindow(WindowDesc *desc, WindowNumber number = 0) : Window(desc)
  47.     {
  48. @@ -320,7 +320,7 @@
  49.  
  50.         this->LowerWidget(_settings_newgame.game_creation.landscape + WID_GL_TEMPERATE);
  51.  
  52. -       this->mode = (GenenerateLandscapeWindowMode)this->window_number;
  53. +       this->mode = (GenerateLandscapeWindowMode)this->window_number;
  54.  
  55.         /* Disable town, industry and trees in SE */
  56.         this->SetWidgetDisabledState(WID_GL_TOWN_PULLDOWN,     _game_mode == GM_EDITOR);
  57. @@ -820,7 +820,7 @@
  58.     _nested_heightmap_load_widgets, lengthof(_nested_heightmap_load_widgets)
  59.  );
  60.  
  61. -static void _ShowGenerateLandscape(GenenerateLandscapeWindowMode mode)
  62. +static void _ShowGenerateLandscape(GenerateLandscapeWindowMode mode)
  63.  {
  64.     uint x = 0;
  65.     uint y = 0;

Comments