summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-12-17 17:46:31 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-12-17 17:46:46 +0100
commit837a2b4e3ac71508bcf642598838bb78e00c6d34 (patch)
tree2aee9261a902640e31d647dc42d46e571afe0027 /server
parent42ea734a650efcf0e547fd59e439c3b4e476b2b9 (diff)
Filter other players hands.
Diffstat (limited to 'server')
-rw-r--r--server/player.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/player.cpp b/server/player.cpp
index 3935710..a267b1d 100644
--- a/server/player.cpp
+++ b/server/player.cpp
@@ -33,8 +33,13 @@ PlayerState Player::get_state() {
}
PlayerState Player::get_state_filtered() {
+ Tiles hand_filtered;
+ for(int i = 0; i < hand.size(); i++) {
+ hand_filtered.push_back(Tile::Back);
+ }
+
Tilegroups h;
- h.push_back(hand);
+ h.push_back(hand_filtered);
for(Sets::iterator it = open.begin(); it != open.end(); it++) {
h.push_back(it->tiles);