Skip to content

Commit

Permalink
Fix MapManager position (and minimap favorites)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Dec 1, 2023
1 parent 87d675d commit 13bfdb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CentrED/Map/MapManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public void Load(string clientPath, string clientVersion)

public Point Position
{
get => new((int)(Camera.Position.X * TILE_SIZE), (int)(Camera.Position.Y * TILE_SIZE));
get => new((int)(Camera.Position.X / TILE_SIZE), (int)(Camera.Position.Y * TILE_SIZE));
set {
if(value != Position) Camera.Moved = true;
Camera.Position.X = value.X * TILE_SIZE;
Expand Down

0 comments on commit 13bfdb7

Please sign in to comment.