(b8f75ee96) Fixed level inequality errors caused by 866621c. Accessing the level start/end location properties during level generation caused the seed of RandSync.Server to be changed. Now generating a new random location uses a new MTRandom instance and doesn't touch RandSync.Server.

This commit is contained in:
Joonas Rikkonen
2019-03-31 19:12:27 +03:00
parent 8668647049
commit fa2a338d73
7 changed files with 22 additions and 31 deletions
@@ -148,7 +148,7 @@ namespace Barotrauma
lastUpdateID++;
levelSeed = value;
LocationType.Random(levelSeed); //call to sync up with clients
LocationType.Random(new MTRandom(ToolBox.StringToInt(levelSeed))); //call to sync up with clients
}
}