(svn r14732) -Codechange: replace some magic number with less magic constants and use the proper type for a few variables.

This commit is contained in:
rubidium
2008-12-23 21:03:43 +00:00
parent ece37ca2c0
commit c3746a55bb
4 changed files with 5 additions and 5 deletions

View File

@@ -66,7 +66,7 @@ struct GraphLegendWindow : Window {
virtual void OnClick(Point pt, int widget)
{
if (!IsInsideMM(widget, 3, 11)) return;
if (!IsInsideMM(widget, 3, MAX_COMPANIES + 3)) return;
ToggleBit(_legend_excluded_companies, widget - 3);
this->ToggleWidgetLoweredState(widget);
@@ -859,7 +859,7 @@ struct PerformanceRatingDetailWindow : Window {
private:
enum PerformanteRatingWidgets {
PRW_COMPANY_FIRST = 13,
PRW_COMPANY_LAST = 20,
PRW_COMPANY_LAST = PRW_COMPANY_FIRST + MAX_COMPANIES - 1,
};
public: