mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-03 04:43:12 +00:00
(svn r11473) -Codechange: Replace two more instances of widget/smalltype numbers by enum(-a) values
This commit is contained in:
parent
51bb4a9dc8
commit
fb0674ee2b
@ -941,8 +941,8 @@ void ShowSmallMap()
|
||||
w = AllocateWindowDescFront(&_smallmap_desc, 0);
|
||||
if (w == NULL) return;
|
||||
|
||||
LowerWindowWidget(w, _smallmap_type + 5);
|
||||
SetWindowWidgetLoweredState(w, 12, _smallmap_show_towns);
|
||||
LowerWindowWidget(w, _smallmap_type + SMT_OWNER);
|
||||
SetWindowWidgetLoweredState(w, SM_WIDGET_TOGGLETOWNNAME, _smallmap_show_towns);
|
||||
|
||||
SmallMapCenterOnCurrentPos(w);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user