fixed player position updates i think

This commit is contained in:
Tahir Akhlaq 2017-06-07 02:59:27 +01:00
parent dd552ba69d
commit b640c87c69
3 changed files with 64 additions and 36 deletions

View file

@ -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)