diff options
| author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-13 07:37:21 +0100 | 
|---|---|---|
| committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-13 07:37:21 +0100 | 
| commit | d432140a22c45841d43eaf7e4b9352fe24f5062f (patch) | |
| tree | 2ff60682833f717af65fafb386447d26d54ca655 /server/client.cpp | |
| parent | b738bb935955ddc66b04cd5fc50dd8ed8ab75765 (diff) | |
Fill RoundEnd with info.
Diffstat (limited to 'server/client.cpp')
| -rw-r--r-- | server/client.cpp | 8 | 
1 files changed, 2 insertions, 6 deletions
| diff --git a/server/client.cpp b/server/client.cpp index 2155359..345e3a3 100644 --- a/server/client.cpp +++ b/server/client.cpp @@ -139,11 +139,7 @@ void Client::round_state(const PlayerState& pl_d, const PlayerState& pl_r, const  	connection->send(make_shared<Message::RoundState>(pl_d, pl_r, pl_u, pl_l, g, a));  } -void Client::round_end(boost::function<void ()> callback) { -	Message::RoundEnd::p msg = make_shared<Message::RoundEnd>(); -	 -	msg->game_end = false; -	 +void Client::round_end(Message::RoundEnd::p msg, boost::function<void ()> callback) {  	connection->send(msg);  	// Check if we're waiting for ready. @@ -176,7 +172,7 @@ void ClientDumb::round_state(const PlayerState& pl_d, const PlayerState& pl_r, c  } -void ClientDumb::round_end(boost::function<void ()> callback) { +void ClientDumb::round_end(Message::RoundEnd::p msg, boost::function<void ()> callback) {  	callback();  } | 
