# HG changeset patch # User frosch # Date 2009-10-20 19:30:50 # Node ID 1dca895e8bca42ab7d4fc77577296396f4922b5d # Parent 0a6c489a092a259b662e9f19708c10783a876195 (svn r17824) -Fix (r4594): _date_fract runs from 0 to 73 since r2041. Variable 0x09 should not. diff --git a/src/newgrf.cpp b/src/newgrf.cpp --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -3716,7 +3716,7 @@ bool GetGlobalVariable(byte param, uint3 return true; case 0x09: // date fraction - *value = _date_fract; + *value = _date_fract * 885; return true; case 0x0A: // animation counter