double click fix

This commit is contained in:
Evert Prants 2017-04-05 23:30:59 +03:00
parent 5bd7b5ab0d
commit f0e29d3bd8
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
1 changed files with 1 additions and 1 deletions

View File

@ -131,8 +131,8 @@
if (Connect4.Game.myTurn && GameDrawer.mouseOn) {
let column = GameDrawer.gridX - 1
if (GameDrawer.possible(column)) {
io.emit('place_at', {column: column, gameId: Connect4.Game.gameId})
Connect4.Game.myTurn = false
io.emit('place_at', {column: column, gameId: Connect4.Game.gameId})
}
}
},