# HG changeset patch # User Darkvater # Date 1142621682 0 # Node ID d5bc3f0987ba5781fef019d675a7d2c0b4653a74 # Parent 6232a0862ae6a2b10bbb04e9ba534f72dfb4bcb2 (svn r3923) - [Pathces/HACK]: Add 32 empty bytes at the end of the patches chunk in the savegame to not to have to increase the savegame version every time we add one; at least for a while. To not break in-between nightlies a temporary hack is done. So make sure to upgrade to this nightly before you upgrade to newer ones. Releases are unaffected diff -r 6232a0862ae6 -r d5bc3f0987ba settings.c --- a/settings.c Fri Mar 17 13:28:50 2006 +0000 +++ b/settings.c Fri Mar 17 18:54:42 2006 +0000 @@ -1302,6 +1302,7 @@ /* This is the penalty for level crossings, for both road and rail vehicles */ SDT_VAR(Patches, npf_crossing_penalty, SLE_UINT, 0, 0, (3 * NPF_TILE_LENGTH), 0, 100000, STR_NULL, NULL), + SDT_CONDNULL(32, 0, SL_MAX_VERSION), SDT_END() }; @@ -1563,6 +1564,9 @@ /* Copy over default setting since some might not get loaded in * a networking environment. This ensures for example that the local * signal_side stays when joining a network-server */ + size_t length = SlGetFieldLength(); + for (; length != 0; length--) SlReadByte(); + return; _patches = _patches_newgame; LoadSettings(_patch_settings, &_patches); }