Merge pull request #4212 from pchote/crater-fix

Fix an off-by-one error in SmudgeLayer.
This commit is contained in:
ScottNZ
2013-12-03 13:52:07 -08:00

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)