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 | 894d9fc12f912ba280dc4325324f5188e99fb3fb (patch) | |
tree | 0e09fbecef792005a3c390649f7cf774c8c43325 /yapf | |
parent | f4bddd0b474bffb7d68d3df2c83c9b3f09dd71d8 (diff) | |
download | openttd-894d9fc12f912ba280dc4325324f5188e99fb3fb.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; } |