Changeset - r11220:ee00d84ef7f1
[Not reviewed]
master
0 1 0
yexo - 15 years ago 2009-02-24 23:20:17
yexo@openttd.org
(svn r15573) -Fix (r15538): Terrain type and sea level couldn't be changed in the scenario editor.
1 file changed with 10 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/genworld_gui.cpp
Show inline comments
 
@@ -587,13 +587,21 @@ struct GenerateLandscapeWindow : public 
 
				}
 
				break;
 

	
 
			case GLAND_TERRAIN_PULLDOWN:
 
			case GLAND_TERRAIN_PULLDOWN: {
 
				byte old_gm = _game_mode;
 
				_game_mode = GM_MENU;
 
				IConsoleSetSetting("difficulty.terrain_type", index);
 
				_game_mode = old_gm;
 
				break;
 
			}
 

	
 
			case GLAND_WATER_PULLDOWN:
 
			case GLAND_WATER_PULLDOWN: {
 
				byte old_gm = _game_mode;
 
				_game_mode = GM_MENU;
 
				IConsoleSetSetting("difficulty.quantity_sea_lakes", index);
 
				_game_mode = old_gm;
 
				break;
 
			}
 
		}
 
		this->SetDirty();
 
	}
0 comments (0 inline, 0 general)