Fix an off-by-one error in SmudgeLayer. Fixes #4139.

This commit is contained in:
Paul Chote
2013-12-03 18:16:40 +13:00
parent 599faba94e
commit 473f8dfbb8

View File

@@ -50,7 +50,7 @@ namespace OpenRA.Mods.RA
// Add map smudges
foreach (var s in w.Map.Smudges.Value.Where(s => Info.Types.Contains(s.Type)))
tiles.Add((CPos)s.Location, new TileReference<byte, byte>((byte)Array.IndexOf(Info.Types, s.Type), (byte)s.Depth));
tiles.Add((CPos)s.Location, new TileReference<byte, byte>((byte)(Array.IndexOf(Info.Types, s.Type) + 1), (byte)s.Depth));
}
public void AddSmudge(CPos loc)