mirror of https://github.com/OpenTTD/OpenTTD
Codechange: Use const instead of magic number for vehicle profit threshold
parent
6e7117e04c
commit
8b0e4bb101
|
@ -299,7 +299,7 @@ private:
|
||||||
spr = SPR_PROFIT_NA;
|
spr = SPR_PROFIT_NA;
|
||||||
} else if (profit_last_year < 0) {
|
} else if (profit_last_year < 0) {
|
||||||
spr = SPR_PROFIT_NEGATIVE;
|
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;
|
spr = SPR_PROFIT_SOME;
|
||||||
} else {
|
} else {
|
||||||
spr = SPR_PROFIT_LOT;
|
spr = SPR_PROFIT_LOT;
|
||||||
|
|
Loading…
Reference in New Issue