1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-30 09:59:10 +00:00

(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
This commit is contained in:
rubidium
2006-08-17 20:22:35 +00:00
parent a178d2600b
commit 7cfd3eb618
8 changed files with 13 additions and 18 deletions

View File

@@ -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;
}