summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-12-07 02:11:21 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-12-07 02:11:21 +0100
commit3f44b4c1eabb42dea5942a9389afd3763b8e5504 (patch)
treec9319cf82d165275099ecb6741e9d41004e7334c
parent18e73025a15b98aae008ffe5a19570a0e5ea19ef (diff)
Removed GameStart::player_id.
-rw-r--r--common/message.h2
-rw-r--r--server/client.cpp2
2 files changed, 0 insertions, 4 deletions
diff --git a/common/message.h b/common/message.h
index 76ebf95..4f1026e 100644
--- a/common/message.h
+++ b/common/message.h
@@ -137,12 +137,10 @@ namespace Message {
GameStart() : Base(Types::GameStart) {}
std::vector<std::string> players;
- int player_id;
template<class Archive>
void serialize(Archive & ar, const unsigned int v) {
ar & players;
- ar & player_id;
}
};
diff --git a/server/client.cpp b/server/client.cpp
index af2494e..8929446 100644
--- a/server/client.cpp
+++ b/server/client.cpp
@@ -124,8 +124,6 @@ void Client::game_start(boost::function<void ()> callback, std::vector<std::stri
msg->players = players;
- msg->player_id = 0;
-
connection->send(msg);
connection->recv(boost::bind(&Client::handle_ready, shared_from_this(), _1, callback));