Re: Daylength Patch [03/09/2007] Compatibility: r11060
Posted: 20 Apr 2008 09:08
here you go
edit: removed - please see two posts below for fixed version.
edit: removed - please see two posts below for fixed version.
The place to talk about Transport Tycoon
https://www.tt-forums.net/
Trond wrote:Any chance of an update to latest trunk for the fixed patch Rouijn? there seem to have been some changes to vehicle base or something that i think is a bit over my head
Code: Select all
xxx_CONDVAR([somevalues] [name_of_setting], [type_of_setting], 95, SL_MAX_VERSION)
Code: Select all
xxx_CONDVAR([somevalues] [name_of_setting], [type_of_setting], 95, SL_MAX_VERSION)
Code: Select all
xxx_CONDVAR([somevalues] [name_of_setting], [type_of_setting], 95, SL_PATCH_BASE)
xxx_CONDVAR([somevalues] [name_of_setting], [type_of_setting], SL_PATCH_BASE + 4, SL_MAX_VERSION)
Code: Select all
xxx_CONDVAR([somevalues] [name_of_setting], [type_of_setting], 36, 94)
xxx_CONDVAR([somevalues] [name_of_setting], [changed_type_of_setting], 95, SL_MAX_VERSION)
Code: Select all
xxx_CONDVAR([somevalues] [name_of_setting], [type_of_setting], 36, 94)
xxx_CONDVAR([somevalues] [name_of_setting], [changed_type_of_setting], 95, SL_PATCH_BASE)
xxx_CONDVAR([somevalues] [name_of_setting], [type_of_setting], SL_PATCH_BASE + 1, PATCH_BASE + 3)
xxx_CONDVAR([somevalues] [name_of_setting], [changed_type_of_setting], SL_PATCH_BASE + 4, SL_MAX_VERSION)
Code: Select all
xxx_CONDVAR([somevalues] [name_of_setting], [type_of_setting], 36, 94)
Code: Select all
xxx_CONDVAR([somevalues] [name_of_setting], [type_of_setting], 36, 94)
xxx_CONDVAR([somevalues] [name_of_setting], [type_of_setting], PATCH_BASE + 1, PATCH_BASE + 3)
Code: Select all
saveload.cpp:
35.7 -extern const uint16 SAVEGAME_VERSION = 94;
35.8 +extern const uint16 SAVEGAME_VERSION = 95;
openttd.cpp:
27.34 + /* Force dynamic engines off when loading older savegames */
27.35 + if (CheckSavegameVersion(95)) _patches.dynamic_engines = 0;
settings.cpp:
36.7 + SDT_CONDBOOL(Patches, dynamic_engines, 95, SL_MAX_VERSION, 0,NN, false, STR_CONFIG_PATCHES_DYNAMIC_ENGINES, NULL),
Code: Select all
[in saveload.cpp]
* patch savegame version 3:
* trunk savegame version bumped to 95
* trunk added dynamic_engines (settings.cpp)
* trunk added savegame check (95) in openttd.cpp
*
* --- add further versions here --- */
const uint16 PATCH_SAVEGAME_VERSION = 3;
Code: Select all
SDT_CONDBOOL([blabla], 95, SL_MAX_VERSION, [blabla]),
Code: Select all
SDT_CONDBOOL([blabla], 95, SL_PATCH_BASE, [blabla]),
SDT_CONDBOOL([blabla], SL_PATCH_BASE + 3, SL_MAX_VERSION, [blabla]),
Code: Select all
if (CheckSavegameVersion(95) || (CheckSavegameVersion(SL_PATCH_BASE + 3) && !CheckSavegameVersion(SL_PATCH_BASE + 1))) _patches.dynamic_engines = 0;