Commit 28c14e0c by Shawn Wang

Merge branch 'develop' of cd.i.strikingly.com:shawn.wang/crazyflirt into develop

parents dd9cfa04 d90641f6
...@@ -83,7 +83,7 @@ class Map extends egret.Sprite { ...@@ -83,7 +83,7 @@ class Map extends egret.Sprite {
Store.getState().runners.forEach(runner => { Store.getState().runners.forEach(runner => {
const updatedRunner = this.runnerMap[runner.t_cid] const updatedRunner = this.runnerMap[runner.t_cid]
if (updatedRunner.x === x && updatedRunner.y === y) { if (updatedRunner.x === x && updatedRunner.y === y) {
catchedRunners.push(updatedRunner) catchedRunners.push(runner)
} }
}) })
return catchedRunners return catchedRunners
...@@ -121,7 +121,7 @@ class Map extends egret.Sprite { ...@@ -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() 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