diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-02 02:13:49 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-02 02:13:49 +0100 |
commit | fdd3d58c92fc924c31c3acad69dcb3d0dac06ac0 (patch) | |
tree | fedc2b0ca0f46ab0df97c3b42a11189396ac3b21 /server/client.cpp | |
parent | 088b544805f90515d626b1e140060f7666c94910 (diff) |
Send current_player with RoundState.
Diffstat (limited to 'server/client.cpp')
-rw-r--r-- | server/client.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/client.cpp b/server/client.cpp index 95f7e1d..1fbef6d 100644 --- a/server/client.cpp +++ b/server/client.cpp @@ -104,8 +104,8 @@ void Client::round_start() { connection->send(make_shared<Message::RoundStart>()); } -void Client::round_state(const PlayerState& pl_d, const PlayerState& pl_r, const PlayerState& pl_u, const PlayerState& pl_l, const Tiles& d, const Actions& a) { - connection->send(make_shared<Message::RoundState>(pl_d, pl_r, pl_u, pl_l, d, a)); +void Client::round_state(const PlayerState& pl_d, const PlayerState& pl_r, const PlayerState& pl_u, const PlayerState& pl_l, const Tiles& d, const Actions& a, int p) { + connection->send(make_shared<Message::RoundState>(pl_d, pl_r, pl_u, pl_l, d, a, p)); } void Client::round_end(boost::function<void ()> callback) { @@ -133,7 +133,7 @@ void ClientDumb::round_start() { } -void ClientDumb::round_state(const PlayerState& pl_d, const PlayerState& pl_r, const PlayerState& pl_u, const PlayerState& pl_l, const Tiles& d, const Actions& a) { +void ClientDumb::round_state(const PlayerState& pl_d, const PlayerState& pl_r, const PlayerState& pl_u, const PlayerState& pl_l, const Tiles& d, const Actions& a, int p) { } |