Cache rotation matrices used by WorldRenderer.DrawRangeCircle.

This commit is contained in:
RoosterDragon
2015-07-09 20:35:08 +01:00
parent 7dc654a5ad
commit 6113892276
2 changed files with 13 additions and 4 deletions

View File

@@ -43,7 +43,12 @@ namespace OpenRA
public WVec Rotate(WRot rot)
{
var mtx = rot.AsMatrix();
return Rotate(rot.AsMatrix());
}
public WVec Rotate(int[] rotationMatrix)
{
var mtx = rotationMatrix;
var lx = (long)X;
var ly = (long)Y;
var lz = (long)Z;