summaryrefslogtreecommitdiff
path: root/yapf
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-08-17 20:22:35 +0000
committerrubidium <rubidium@openttd.org>2006-08-17 20:22:35 +0000
commit7cfd3eb61834ee3d4c5037b0a3ffc71089b9564a (patch)
tree0e09fbecef792005a3c390649f7cf774c8c43325 /yapf
parenta178d2600b02a2c3091d1e185f887d371f4a1feb (diff)
downloadopenttd-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.hpp6
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;
}