(svn r11473) -Codechange: Replace two more instances of widget/smalltype numbers by enum(-a) values

This commit is contained in:
belugas 2007-11-19 01:16:53 +00:00
parent 64e4ecd958
commit 581032d94c

View File

@ -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);
} }