Commit d90641f6 by Matt

fix hit test

parent 93be376a
......@@ -83,7 +83,7 @@ class Map extends egret.Sprite {
Store.getState().runners.forEach(runner => {
const updatedRunner = this.runnerMap[runner.t_cid]
if (updatedRunner.x === x && updatedRunner.y === y) {
catchedRunners.push(updatedRunner)
catchedRunners.push(runner)
}
})
return catchedRunners
......@@ -121,7 +121,7 @@ class Map extends egret.Sprite {
}
}),
})
if (Store.isMe(runner.t_cid)) {
if (Store.isMe(runner.t_cid) || Store.isCatcher()) {
SoundManager.getInstance().playCatched()
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment