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

pull/128/head
Samu 4 years ago committed by Charles Pigott
parent 6e7117e04c
commit 8b0e4bb101

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

Loading…
Cancel
Save