diff --git a/server/src/GameServer/GameLogic/Map/Map.Geometry.cs b/server/src/GameServer/GameLogic/Map/Map.Geometry.cs index b3bf9e0..c6e7df3 100644 --- a/server/src/GameServer/GameLogic/Map/Map.Geometry.cs +++ b/server/src/GameServer/GameLogic/Map/Map.Geometry.cs @@ -94,8 +94,8 @@ public Position GetRealEndPositon( { Position a = new(startPosition.x, startPosition.y); Position b = new(expectedEndPosition.x, expectedEndPosition.y); - Position firstHitX = new(a.x, a.y); - Position firstHitY = new(a.x, a.y); + Position firstHitX = new(b.x, b.y); + Position firstHitY = new(b.x, b.y); int deltaX = (direction.x > 0) ? 0 : -1; int deltaY = (direction.y > 0) ? 0 : -1;