Merge branch 'develop' into move-to-from-hash-parameter

This commit is contained in:
Hanusiak Piotr 2022-01-24 16:31:03 +01:00
commit 3cc38e6bbe
3 changed files with 44 additions and 43 deletions

View file

@ -1463,7 +1463,6 @@ ${escapedMessage}
});
iframeListener.registerAnswerer("movePlayerTo", async (message) => {
// TODO: walk player to position, wait for promise to resolve
const index = this.getGameMap().getTileIndexAt(message.x, message.y);
const startTile = this.getGameMap().getTileIndexAt(this.CurrentPlayer.x, this.CurrentPlayer.y);
const path = await this.getPathfindingManager().findPath(startTile, index, true, true);