summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-10-20 19:30:50 +0000
committerfrosch <frosch@openttd.org>2009-10-20 19:30:50 +0000
commita138f604ee57f36460dfc7a9d206b6f7f0dd9fe0 (patch)
treece3a8e1d1e66baeb15db02df0a6fa38fbcd146ae /src/newgrf.cpp
parent7658bac2b5591c257bd58bf0d732938394b307bb (diff)
downloadopenttd-a138f604ee57f36460dfc7a9d206b6f7f0dd9fe0.tar.xz
(svn r17824) -Fix (r4594): _date_fract runs from 0 to 73 since r2041. Variable 0x09 should not.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 6257d09c9..28dca23b0 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