summaryrefslogtreecommitdiff
path: root/server/client.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-12-13 07:37:21 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-12-13 07:37:21 +0100
commitd432140a22c45841d43eaf7e4b9352fe24f5062f (patch)
tree2ff60682833f717af65fafb386447d26d54ca655 /server/client.cpp
parentb738bb935955ddc66b04cd5fc50dd8ed8ab75765 (diff)
Fill RoundEnd with info.
Diffstat (limited to 'server/client.cpp')
-rw-r--r--server/client.cpp8
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();
}