mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 23:34:15 +00:00
Codechange: Use const instead of magic number for vehicle profit threshold
This commit is contained in:
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…
Reference in New Issue
Block a user