From a138f604ee57f36460dfc7a9d206b6f7f0dd9fe0 Mon Sep 17 00:00:00 2001 From: frosch Date: Tue, 20 Oct 2009 19:30:50 +0000 Subject: [PATCH] (svn r17824) -Fix (r4594): _date_fract runs from 0 to 73 since r2041. Variable 0x09 should not. --- src/newgrf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 6257d09c9a..28dca23b08 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -3716,7 +3716,7 @@ bool GetGlobalVariable(byte param, uint32 *value) return true; case 0x09: // date fraction - *value = _date_fract; + *value = _date_fract * 885; return true; case 0x0A: // animation counter