summaryrefslogtreecommitdiff
path: root/src/smallmap_gui.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-11-19 01:16:53 +0000
committerbelugas <belugas@openttd.org>2007-11-19 01:16:53 +0000
commitfb0674ee2b4cadbeb804cbe79ffd5c37ea3aec7a (patch)
tree82199630164e9105dc792193b9d3dc67a43c58a8 /src/smallmap_gui.cpp
parent51bb4a9dc8581e4d849be56310fb2a00214a5e3d (diff)
downloadopenttd-fb0674ee2b4cadbeb804cbe79ffd5c37ea3aec7a.tar.xz
(svn r11473) -Codechange: Replace two more instances of widget/smalltype numbers by enum(-a) values
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r--src/smallmap_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp
index 0e1a966d3..ff357e81a 100644
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -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);
}