From b219b7b53a764350f30f38bbd6dff733d25284fc Mon Sep 17 00:00:00 2001 From: maedhros Date: Sun, 6 May 2007 09:12:58 +0000 Subject: [PATCH] (svn r9793) -Fix (r9701): Action D 'TTDPatch variable' 0x0B should be the starting year, not the current year. --- src/newgrf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 2bc557106e..88ebbd3fc1 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -3463,7 +3463,7 @@ static uint32 GetPatchVariable(uint8 param) { switch (param) { /* start year - 1920 */ - case 0x0B: return _cur_year - ORIGINAL_BASE_YEAR; + case 0x0B: return max(_patches.starting_year, ORIGINAL_BASE_YEAR) - ORIGINAL_BASE_YEAR; /* freight trains weight factor */ case 0x0E: return _patches.freight_trains; /* empty wagon speed increase */