Mercurial > hg > openttd
changeset 7920:0b30f2acaf37 draft
(svn r11473) -Codechange: Replace two more instances of widget/smalltype numbers by enum(-a) values
author | belugas <belugas@openttd.org> |
---|---|
date | Mon, 19 Nov 2007 01:16:53 +0000 |
parents | 1d3179058414 |
children | 6681c06e5d0b |
files | src/smallmap_gui.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -941,8 +941,8 @@ 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); }