From 0ef516444415729861681b91531322e4eb66dc78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atle=20Hellvik=20Havs=C3=B8?= Date: Tue, 23 Nov 2010 14:56:22 +0100 Subject: Minor change in RuleSet::Standard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Atle Hellvik Havsø --- server/standard.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'server') 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); -- cgit v1.2.3