mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-08-24 18:10:51 +02:00
fixed player position updates i think
This commit is contained in:
parent
dd552ba69d
commit
b640c87c69
3 changed files with 64 additions and 36 deletions
|
@ -161,6 +161,8 @@ namespace FFXIVClassic_Map_Server.Actors
|
|||
|
||||
public void UpdateActorPosition(Actor actor)
|
||||
{
|
||||
this.hasMoved = true;
|
||||
|
||||
int gridX = (int)actor.positionX / boundingGridSize;
|
||||
int gridY = (int)actor.positionZ / boundingGridSize;
|
||||
|
||||
|
@ -202,7 +204,6 @@ namespace FFXIVClassic_Map_Server.Actors
|
|||
mActorBlock[gridOldX, gridOldY].Remove(actor);
|
||||
mActorBlock[gridX, gridY].Add(actor);
|
||||
}
|
||||
this.hasMoved = true;
|
||||
}
|
||||
|
||||
public List<Actor> GetActorsAroundPoint(float x, float y, int checkDistance)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue