diff options
author | rubidium <rubidium@openttd.org> | 2006-08-17 20:22:35 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-08-17 20:22:35 +0000 |
commit | 7cfd3eb61834ee3d4c5037b0a3ffc71089b9564a (patch) | |
tree | 0e09fbecef792005a3c390649f7cf774c8c43325 /yapf | |
parent | a178d2600b02a2c3091d1e185f887d371f4a1feb (diff) | |
download | openttd-7cfd3eb61834ee3d4c5037b0a3ffc71089b9564a.tar.xz |
(svn r5934) -Cleanup: forgot some conversions to Year and to Date
-Cleanup: use _cur_year instead of _date for some (year based) comparisons
-Cleanup: remove a magic number in favour of another (less) magic number
Diffstat (limited to 'yapf')
-rw-r--r-- | yapf/yapf_costcache.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yapf/yapf_costcache.hpp b/yapf/yapf_costcache.hpp index ee4029e0c..5ad6f8cdc 100644 --- a/yapf/yapf_costcache.hpp +++ b/yapf/yapf_costcache.hpp @@ -148,11 +148,11 @@ protected: FORCEINLINE static Cache& stGetGlobalCache() { static int last_rail_change_counter = 0; - static uint32 last_day = 0; + static Date last_date = 0; // some statistics - if (last_day != _date) { - last_day = _date; + if (last_date != _date) { + last_date = _date; DEBUG(yapf, 1)("pf time today:%5d ms\n", _total_pf_time_us / 1000); _total_pf_time_us = 0; } |