Fix an off-by-one error in SmudgeLayer. Fixes #4139.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user