Codechange: Use const instead of magic number for vehicle profit threshold

This commit is contained in:
Samu 2020-01-09 13:42:35 +00:00 committed by Charles Pigott
parent 6e7117e04c
commit 8b0e4bb101

View File

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