refactor: ReplaySystem.route -> ReplaySystem.array,修复 disabled 标记在 setReplayArray 中清零可能导致意外记录的问题

This commit is contained in:
AncTe committed 2026-09-17 19:18:30 +08:00
1 parent 3a3a6ac82d
commit a2a8e6ec35
19 files changed
+96 -87

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ export class PathfindingSystem implements IPathfindingSystem {
// TODO:后续需要调整设计方式,最好不用 instanceof
if (this.mover instanceof HeroMover) {
const replay = this.state.replaySystem;
replay.route.add(ReplayCode.Teleport, [target.x, target.y]);
replay.array.add(ReplayCode.Teleport, [target.x, target.y]);
}
return this.startMove(path, true);
}