mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r11473) -Codechange: Replace two more instances of widget/smalltype numbers by enum(-a) values
This commit is contained in:
parent
64e4ecd958
commit
581032d94c
@ -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
Block a user