Skip to content

Commit

Permalink
feat: review move path css
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivomo committed Nov 5, 2023
1 parent f4545df commit 74d09b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/client/src/pages/game/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,9 @@ const Game = () => {
}
if (curPlayer) {
const path = bfs(simpleMapData, curPlayer, { x, y }).slice(1);
path.slice(0, Number(curPlayer.speed)).forEach(item => item.movable = true);
if (!curPlayer.waiting) {
path.slice(0, Number(curPlayer.speed)).forEach(item => item.movable = true);
}
setRenderPreviewPaths(path);
}
}
Expand Down

0 comments on commit 74d09b1

Please sign in to comment.