forked from mirror/OpenTTD
(svn r9793) -Fix (r9701): Action D 'TTDPatch variable' 0x0B should be the starting year, not the current year.
This commit is contained in:
@@ -3463,7 +3463,7 @@ static uint32 GetPatchVariable(uint8 param)
|
|||||||
{
|
{
|
||||||
switch (param) {
|
switch (param) {
|
||||||
/* start year - 1920 */
|
/* 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 */
|
/* freight trains weight factor */
|
||||||
case 0x0E: return _patches.freight_trains;
|
case 0x0E: return _patches.freight_trains;
|
||||||
/* empty wagon speed increase */
|
/* empty wagon speed increase */
|
||||||
|
Reference in New Issue
Block a user