Revert "Shrink tile bounds slightly (#3831)" (#3837)

This commit is contained in:
metalgearsloth
2023-03-11 12:45:23 +11:00
committed by GitHub
parent 2e9f0275d7
commit 4c81bf164c

View File

@@ -882,9 +882,7 @@ public sealed partial class EntityLookupSystem
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public Box2 GetLocalBounds(Vector2i gridIndices, ushort tileSize)
{
var gridPos = (Vector2)gridIndices;
// To avoid marginal overlap from other tiles
return new Box2(gridPos * tileSize + 0.05f, (gridPos + 1) * tileSize - 0.05f);
return new Box2(gridIndices * tileSize, (gridIndices + 1) * tileSize);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]