From 23a2f23eb35cec39f7a31fe6b541c95a11e0102f Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 3 Oct 2011 17:25:44 +0000 Subject: (svn r22984) -Feature: Display profit icons for groups in the group GUI. --- src/vehicle_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vehicle_gui.cpp') diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 512a5568b..c3cc8dade 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -193,11 +193,11 @@ static void DrawVehicleProfitButton(const Vehicle *v, int x, int y) SpriteID spr; /* draw profit-based coloured icons */ - if (v->age <= DAYS_IN_YEAR * 2) { + if (v->age <= VEHICLE_PROFIT_MIN_AGE) { spr = SPR_PROFIT_NA; } else if (v->GetDisplayProfitLastYear() < 0) { spr = SPR_PROFIT_NEGATIVE; - } else if (v->GetDisplayProfitLastYear() < 10000) { + } else if (v->GetDisplayProfitLastYear() < VEHICLE_PROFIT_THRESHOLD) { spr = SPR_PROFIT_SOME; } else { spr = SPR_PROFIT_LOT; -- cgit v1.2.3-70-g09d2