Merge pull request #14 from jhalitaksoy/fix/game-model
fix: update gameUsersConnectionInfo onGameMove
This commit is contained in:
commit
958aa9d0f0
@ -54,6 +54,7 @@ export class GameManager {
|
||||
if (game) {
|
||||
try {
|
||||
game.mancalaGame.moveByPlayerPit(userKey, gameMove.index);
|
||||
game.gameUsersConnectionInfo = this.getGameUsersConnectionInfo(game);
|
||||
this.rtmt.sendMessage(game.mancalaGame.player1Id, channel_on_game_update, game);
|
||||
this.rtmt.sendMessage(game.mancalaGame.player2Id, channel_on_game_update, game);
|
||||
if (game.mancalaGame.state == "ended") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user