Revert "HACK: Testcase for edge clamping."

This reverts commit fb84f1157e.
This commit is contained in:
Oliver Brakmann
2015-07-30 16:36:40 +02:00
parent 74570e5998
commit 439bc4ab34

View File

@@ -98,21 +98,7 @@ namespace OpenRA.Mods.Common.Traits
} }
} }
// Clamped cell lr.LineWidth = 1;
var clamped = map.Clamp(mouseCell);
{
var pos = map.CenterOfCell(clamped.ToCPos(map));
var tile = map.MapTiles.Value[clamped];
var ti = tileSet.GetTileInfo(tile);
var ramp = ti != null ? (int)ti.RampType : 0;
var screen = map.CellCorners[ramp].Select(c => wr.ScreenPxPosition(pos + c).ToFloat2()).ToArray();
for (var i = 0; i < 4; i++)
{
var j = (i + 1) % 4;
lr.DrawLine(screen[i], screen[j], Color.White);
}
}
} }
} }
} }