From cd99e7850177436e68864525e7a1b0c771b1a2a3 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 24 Sep 2016 14:00:36 +0100 Subject: [PATCH] Use CosmeticRandom for picking smudge type. --- OpenRA.Mods.Common/Traits/World/SmudgeLayer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/World/SmudgeLayer.cs b/OpenRA.Mods.Common/Traits/World/SmudgeLayer.cs index 48ac92f81b..d275fd4d01 100644 --- a/OpenRA.Mods.Common/Traits/World/SmudgeLayer.cs +++ b/OpenRA.Mods.Common/Traits/World/SmudgeLayer.cs @@ -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