Changeset - r16316:42c599d9405e
[Not reviewed]
master
0 1 0
terkhen - 14 years ago 2010-10-24 20:58:31
terkhen@openttd.org
(svn r21034) -Fix: Add missing default values for the custom town number and custom water level world generation options.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/genworld_gui.cpp
Show inline comments
 
@@ -784,12 +784,14 @@ struct GenerateLandscapeWindow : public 
 
			value = atoi(str);
 
		} else {
 
			/* An empty string means revert to the default */
 
			switch (this->widget_id) {
 
				case GLAND_START_DATE_TEXT: value = DEF_START_YEAR; break;
 
				case GLAND_SNOW_LEVEL_TEXT: value = DEF_SNOWLINE_HEIGHT; break;
 
				case GLAND_TOWN_PULLDOWN:   value = 1; break;
 
				case GLAND_WATER_PULLDOWN:  value = CUSTOM_SEA_LEVEL_MIN_PERCENTAGE; break;
 
				default: NOT_REACHED();
 
			}
 
		}
 

	
 
		switch (this->widget_id) {
 
			case GLAND_START_DATE_TEXT:
0 comments (0 inline, 0 general)