summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamu <dj_samu@hotmail.com>2020-01-09 13:42:35 +0000
committerCharles Pigott <charlespigott@googlemail.com>2020-01-09 13:51:58 +0000
commit8b0e4bb10170d8eeb882f0fcc0ad58e80d751027 (patch)
tree1e41de0552d6ec54c8ef8962f75915259a28af0a
parent6e7117e04c740be951a3dcc81aeda716569fa013 (diff)
downloadopenttd-8b0e4bb10170d8eeb882f0fcc0ad58e80d751027.tar.xz
Codechange: Use const instead of magic number for vehicle profit threshold
-rw-r--r--src/group_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index 842e3fbb0..e28e10bb2 100644
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -299,7 +299,7 @@ private:
spr = SPR_PROFIT_NA;
} else if (profit_last_year < 0) {
spr = SPR_PROFIT_NEGATIVE;
- } else if (profit_last_year < (Money)10000 * num_profit_vehicle) { // TODO magic number
+ } else if (profit_last_year < VEHICLE_PROFIT_THRESHOLD * num_profit_vehicle) {
spr = SPR_PROFIT_SOME;
} else {
spr = SPR_PROFIT_LOT;