Fix docks clipping on shuttle nav (#36348)
* Fix docks clipping on shuttle nav UI scale casualty. * review
This commit is contained in:
@@ -119,8 +119,6 @@ public partial class BaseShuttleControl : MapGridControl
|
||||
protected void DrawGrid(DrawingHandleScreen handle, Matrix3x2 gridToView, Entity<MapGridComponent> grid, Color color, float alpha = 0.01f)
|
||||
{
|
||||
var rator = Maps.GetAllTilesEnumerator(grid.Owner, grid.Comp);
|
||||
var minimapScale = MinimapScale;
|
||||
var midpoint = new Vector2(MidPoint, MidPoint);
|
||||
var tileSize = grid.Comp.TileSize;
|
||||
|
||||
// Check if we even have data
|
||||
@@ -263,9 +261,7 @@ public partial class BaseShuttleControl : MapGridControl
|
||||
var edgeCount = totalData - gridData.EdgeIndex;
|
||||
Extensions.EnsureLength(ref _allVertices, totalData);
|
||||
|
||||
_drawJob.MidPoint = midpoint;
|
||||
_drawJob.Matrix = gridToView;
|
||||
_drawJob.MinimapScale = minimapScale;
|
||||
_drawJob.Vertices = gridData.Vertices;
|
||||
_drawJob.ScaledVertices = _allVertices;
|
||||
|
||||
@@ -288,8 +284,6 @@ public partial class BaseShuttleControl : MapGridControl
|
||||
{
|
||||
public int BatchSize => 64;
|
||||
|
||||
public float MinimapScale;
|
||||
public Vector2 MidPoint;
|
||||
public Matrix3x2 Matrix;
|
||||
|
||||
public List<Vector2> Vertices;
|
||||
|
||||
Reference in New Issue
Block a user