From fb938a2cb3fb7cfe6ca447dca5fc28bac78ed2e8 Mon Sep 17 00:00:00 2001 From: glx Date: Tue, 6 May 2008 15:06:19 +0000 Subject: (svn r12970) -Codechange: coding style for some function names --- src/industry_gui.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 3fd63712f..34e989be1 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -399,12 +399,12 @@ void ShowBuildIndustryWindow() static void UpdateIndustryProduction(Industry *i); -static inline bool isProductionMinimum(const Industry *i, int pt) +static inline bool IsProductionMinimum(const Industry *i, int pt) { return i->production_rate[pt] == 0; } -static inline bool isProductionMaximum(const Industry *i, int pt) +static inline bool IsProductionMaximum(const Industry *i, int pt) { return i->production_rate[pt] >= 255; } @@ -501,7 +501,7 @@ static void IndustryViewWndProc(Window *w, WindowEvent *e) /* Let's put out those buttons.. */ if (IsProductionAlterable(i)) { DrawArrowButtons(5, y, 3, (WP(w, indview_d).clicked_line == j + 1) ? WP(w, indview_d).clicked_button : 0, - !isProductionMinimum(i, j), !isProductionMaximum(i, j)); + !IsProductionMinimum(i, j), !IsProductionMaximum(i, j)); } y += 10; } @@ -550,12 +550,12 @@ static void IndustryViewWndProc(Window *w, WindowEvent *e) if (IsInsideMM(x, 5, 25) ) { /* Clicked buttons, decrease or increase production */ if (x < 15) { - if (isProductionMinimum(i, line)) return; + if (IsProductionMinimum(i, line)) return; i->production_rate[line] = max(i->production_rate[line] / 2, 0); } else { /* a zero production industry is unlikely to give anything but zero, so push it a little bit */ int new_prod = i->production_rate[line] == 0 ? 1 : i->production_rate[line] * 2; - if (isProductionMaximum(i, line)) return; + if (IsProductionMaximum(i, line)) return; i->production_rate[line] = minu(new_prod, 255); } -- cgit v1.2.3-70-g09d2