(svn r24132) -Change [FS#4713]: Improve randomness of tile order in the tile loop. (monoid)

This commit is contained in:
michi_cc
2012-04-17 19:43:43 +00:00
parent d78c4d9ee3
commit 2eae02db59
4 changed files with 36 additions and 20 deletions

View File

@@ -483,6 +483,10 @@ bool AfterLoadGame()
TileIndex map_size = MapSize();
extern TileIndex _cur_tileloop_tile; // From landscape.cpp.
/* The LFSR used in RunTileLoop iteration cannot have a zeroed state, make it non-zeroed. */
if (_cur_tileloop_tile == 0) _cur_tileloop_tile = 1;
if (IsSavegameVersionBefore(98)) GamelogOldver();
GamelogTestRevision();