FS#6673 - game_creation.variety isn't stored in savegames

Attached to Project: OpenTTD
Opened by Ricardo (Samu) - Tuesday, 30 January 2018, 18:12 GMT
Last edited by frosch (frosch) - Sunday, 11 March 2018, 12:11 GMT
Type Bug
Category Core
Status Closed
Assigned To No-one
Operating System Windows
Severity Very Low
Priority Normal
Reported Version 1.7.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Copy/paste from

The 'Variety distribution' setting which is used for generating the world was a client setting and was not stored in savegames.

This would mean that when I was receiving a map from a multi-player server, this information was not provided. When I was attempting to 'restart' in the console to generate the exact same world, I was getting a slightly different terrain.

This patch makes this setting a game setting, and stores it in savegames. Apparently, this required a savegame version bump.
There is no savegame conversion, since the information wasn't previously stored. Loading a savegame prior to this patch will re-use the value that is currently set in openttd.
This task depends upon

Closed by  frosch (frosch)
Sunday, 11 March 2018, 12:11 GMT
Reason for closing:  Fixed
Additional comments about closing:  in r27978. Thanks for the patch.