1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-27 16:39:09 +00:00

(svn r6633) -Fix r6631: climate selector now shows the current selected climate (and only this one)

This commit is contained in:
glx
2006-10-04 00:27:31 +00:00
parent 96a8a23fb5
commit b63b99faef
2 changed files with 12 additions and 5 deletions

View File

@@ -50,7 +50,10 @@ static void SelectGameWndProc(Window *w, WindowEvent *e)
case WE_CREATE: LowerWindowWidget(w, _opt_newgame.landscape + 8); break;
case WE_PAINT:
LowerWindowWidget(w, _opt_newgame.landscape + 8); // All buttons get automagically unclicked
SetWidgetLoweredState(w, 8, _opt_newgame.landscape == LT_NORMAL);
SetWidgetLoweredState(w, 9, _opt_newgame.landscape == LT_HILLY);
SetWidgetLoweredState(w, 10, _opt_newgame.landscape == LT_DESERT);
SetWidgetLoweredState(w, 11, _opt_newgame.landscape == LT_CANDY);
SetDParam(0, STR_6801_EASY + _opt_newgame.diff_level);
DrawWindowWidgets(w);
break;