Merge pull request #12094 from pchote/work-around-smudge-desync

Use CosmeticRandom for picking smudge type.
This commit is contained in:
reaperrr
2016-09-24 20:47:55 +02:00
committed by GitHub

View File

@@ -146,7 +146,7 @@ namespace OpenRA.Mods.Common.Traits
if ((!dirty.ContainsKey(loc) || dirty[loc].Sprite == null) && !tiles.ContainsKey(loc))
{
// No smudge; create a new one
var st = smudges.Keys.Random(world.SharedRandom);
var st = smudges.Keys.Random(Game.CosmeticRandom);
dirty[loc] = new Smudge { Type = st, Depth = 0, Sprite = smudges[st][0] };
}
else