summaryrefslogtreecommitdiff
path: root/server/client.cpp
diff options
context:
space:
mode:
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();
}