Changeset - r5213:f8b6c4ad74bc
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2006-12-03 13:06:49
rubidium@openttd.org
(svn r7328) -Fix: memory corruption. The 'Load Heightmap' window does not have TerraGenesis configuration buttons and it does have only 29 widgets, not at least 33. Thanks to Tefad for finding this bug.
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
genworld_gui.c
Show inline comments
 
@@ -206,8 +206,10 @@ void GenerateLandscapeWndProc(Window *w,
 

	
 
	case WE_PAINT:
 
		/* You can't select smoothness if not terragenesis */
 
		SetWindowWidgetDisabledState(w, 32, _patches_newgame.land_generator == 0);
 
		SetWindowWidgetDisabledState(w, 33, _patches_newgame.land_generator == 0);
 
		if (mode == GLWP_GENERATE) {
 
			SetWindowWidgetDisabledState(w, 32, _patches_newgame.land_generator == 0);
 
			SetWindowWidgetDisabledState(w, 33, _patches_newgame.land_generator == 0);
 
		}
 
		/* Disable snowline if not hilly */
 
		SetWindowWidgetDisabledState(w, 22, _opt_newgame.landscape != LT_HILLY);
 
		/* Disable town and industry in SE */
0 comments (0 inline, 0 general)