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