Changeset - r24042:cb2ac31a63c2
[Not reviewed]
master
0 1 0
Samu - 4 years ago 2020-01-09 13:42:35
dj_samu@hotmail.com
Codechange: Use const instead of magic number for vehicle profit threshold
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/group_gui.cpp
Show inline comments
 
@@ -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;
0 comments (0 inline, 0 general)