diff options
Diffstat (limited to 'server/game.cpp')
-rw-r--r-- | server/game.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/server/game.cpp b/server/game.cpp index 76ee99d..75b369d 100644 --- a/server/game.cpp +++ b/server/game.cpp @@ -63,6 +63,10 @@ void Game::round_start() { // Build a new wall. wall.build(); + // Clear previous dora and draw a new. + dora.clear(); + dora.push_back(wall.take_one()); + // Notify players of round start. // TODO: Tell them where wall is broken. players[0].round_start(); @@ -111,7 +115,7 @@ void Game::round_update_draw() { a = possible_actions; } - players[player].client->round_state(state[0], state[1], state[2], state[3], Tiles(), a); + players[player].client->round_state(state[0], state[1], state[2], state[3], dora, a); } while(++player); // Await action from client. @@ -140,7 +144,7 @@ void Game::round_update_discard() { } } - players[player].client->round_state(state[0], state[1], state[2], state[3], Tiles(), a); + players[player].client->round_state(state[0], state[1], state[2], state[3], dora, a); } while(++player); preceding_action = Action::Pass; |