(svn r26928) -Change: scale the heightmap colours over the whole range of heights (based on patch by ic111)

This commit is contained in:
rubidium
2014-09-27 11:17:54 +00:00
parent f192045796
commit 0176ef274f
4 changed files with 47 additions and 9 deletions

View File

@@ -141,6 +141,10 @@ static int32 ClickChangeMaxHlCheat(int32 p1, int32 p2) {
/* Execute the change and reload GRF Data */
_settings_game.construction.max_heightlevel = p1;
ReloadNewGRFData();
/* The smallmap uses an index from heightlevels to colours. Trigger rebuilding it. */
InvalidateWindowClassesData(WC_SMALLMAP, 2);
return _settings_game.construction.max_heightlevel;
}