diff options
author | Atle Hellvik Havsø <atle@havso.net> | 2010-11-23 14:56:22 +0100 |
---|---|---|
committer | Atle Hellvik Havsø <atle@havso.net> | 2010-11-23 14:56:22 +0100 |
commit | 0ef516444415729861681b91531322e4eb66dc78 (patch) | |
tree | 97c4b46c7b16593f6524a1c9f86ac37aa12e6108 /server | |
parent | 33fbb2451fdac7f36bf3934aab0f64bb0896bf08 (diff) |
Minor change in RuleSet::Standard
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
Diffstat (limited to 'server')
-rw-r--r-- | server/standard.cpp | 8 |
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); |