diff options
author | frosch <frosch@openttd.org> | 2011-10-03 17:25:44 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-10-03 17:25:44 +0000 |
commit | 23a2f23eb35cec39f7a31fe6b541c95a11e0102f (patch) | |
tree | 0e25194fcb6683e3b9355a26d6fc85cd3c063a5a /src/vehicle_func.h | |
parent | d6e6e8a9d4d4e6937fc030a7d5d5a0e38cf6f991 (diff) | |
download | openttd-23a2f23eb35cec39f7a31fe6b541c95a11e0102f.tar.xz |
(svn r22984) -Feature: Display profit icons for groups in the group GUI.
Diffstat (limited to 'src/vehicle_func.h')
-rw-r--r-- | src/vehicle_func.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vehicle_func.h b/src/vehicle_func.h index 475c8a313..efc07ed07 100644 --- a/src/vehicle_func.h +++ b/src/vehicle_func.h @@ -26,6 +26,9 @@ #define IS_CUSTOM_FIRSTHEAD_SPRITE(x) (x == 0xFD) #define IS_CUSTOM_SECONDHEAD_SPRITE(x) (x == 0xFE) +static const int VEHICLE_PROFIT_MIN_AGE = DAYS_IN_YEAR * 2; ///< Only vehicles older than this have a meaningful profit. +static const Money VEHICLE_PROFIT_THRESHOLD = 10000; ///< Threshold for a vehicle to be considered making good profit. + typedef Vehicle *VehicleFromPosProc(Vehicle *v, void *data); void VehicleServiceInDepot(Vehicle *v); |