From 837a2b4e3ac71508bcf642598838bb78e00c6d34 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Fri, 17 Dec 2010 17:46:31 +0100 Subject: Filter other players hands. --- server/player.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'server') 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); -- cgit v1.2.3