summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorOle Daniel Evensen <ole_daniel_evensen@hotmail.com>2010-11-24 14:23:41 +0100
committerOle Daniel Evensen <ole_daniel_evensen@hotmail.com>2010-11-24 14:23:41 +0100
commit3756ecd1de73169f9eee32a65d35fab76abb212f (patch)
tree6fe76ee6c345f7d7cf5d4d57dd6989178aaeb4f8 /server
parent0736e72be71331b843e2f49c3af0cb9071ee93ca (diff)
Player discards after chi.
Diffstat (limited to 'server')
-rw-r--r--server/standard.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/standard.cpp b/server/standard.cpp
index 015308d..4b54c37 100644
--- a/server/standard.cpp
+++ b/server/standard.cpp
@@ -267,6 +267,10 @@ State& Standard::round_update() {
num_player_actions++;
}
+ if(num_player_actions == 0) {
+ draw_phase = true;
+ }
+
return game_state;
}
@@ -388,6 +392,12 @@ bool Standard::round_action(Action action) {
count++;
}
+ Action discard;
+ discard.type = Action::Discard;
+ discard.player = action.player;
+ game_state.possible_actions.push_back(discard);
+
+ draw_phase = false;
} break;