Skip to content

Commit d1424fe

Browse files
committed
Fixes constant jitter of entities as they move
1 parent 1459a02 commit d1424fe

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
@@ -1554,8 +1554,8 @@ protected virtual void CalculateOrigin()
15541554
}
15551555

15561556
mOrigin = new Vector2(
1557-
LatestMap.X + X * TileWidth + OffsetX + TileWidth / 2,
1558-
LatestMap.Y + Y * TileHeight + OffsetY + TileHeight
1557+
(float)Math.Round(LatestMap.X + X * TileWidth + OffsetX + TileWidth / 2f),
1558+
(float)Math.Round(LatestMap.Y + Y * TileHeight + OffsetY + TileHeight)
15591559
);
15601560
}
15611561

0 commit comments

Comments
 (0)