Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
Fix: A bug in end position calculating
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenC8661476 committed May 20, 2024
1 parent 6ef8d98 commit 25b6d93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/GameServer/GameLogic/Map/Map.Geometry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 25b6d93

Please sign in to comment.