summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/standard.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/server/standard.cpp b/server/standard.cpp
index 7ffd6ac..08012d1 100644
--- a/server/standard.cpp
+++ b/server/standard.cpp
@@ -375,18 +375,16 @@ bool Standard::round_action(Action action) {
if(most_value_action.type != Action::Pass) {
switch (most_value_action.type) {
case Action::Chi: {
- Set chi;
Tile left_tile = game_state.players[current_player].pond.back();
left_tile.rotated = true;
- chi.add_tile(left_tile);
+ game_state.players[action.player].open.push_back(left_tile);
Tile middle_tile = game_state.players[action.player].hand[action.target];
- chi.add_tile(middle_tile);
+ game_state.players[action.player].open.push_back(middle_tile);
Tile right_tile = game_state.players[action.player].hand[action.target2];
- chi.add_tile(right_tile);
+ game_state.players[action.player].open.push_back(right_tile);
- game_state.players[action.player].open.push_back(chi);
game_state.players[action.player].hand.erase(game_state.players[action.player].hand.begin() + action.target);
game_state.players[action.player].hand.erase(game_state.players[action.player].hand.begin() + action.target2 - 1);