Skip to content

Commit 499d3ad

Browse files
authored
Fixes constant jitter of entities as they move (#2758)
1 parent b973bcc commit 499d3ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Intersect.Client.Core/Entities/Entity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,8 +1561,8 @@ protected virtual void CalculateOrigin()
15611561
}
15621562

15631563
mOrigin = new Vector2(
1564-
LatestMap.X + X * TileWidth + OffsetX + TileWidth / 2,
1565-
LatestMap.Y + Y * TileHeight + OffsetY + TileHeight
1564+
(float)Math.Round(LatestMap.X + X * TileWidth + OffsetX + TileWidth / 2f),
1565+
(float)Math.Round(LatestMap.Y + Y * TileHeight + OffsetY + TileHeight)
15661566
);
15671567
}
15681568

0 commit comments

Comments
 (0)