summaryrefslogtreecommitdiff
path: root/server/lobby.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'server/lobby.cpp')
-rw-r--r--server/lobby.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/server/lobby.cpp b/server/lobby.cpp
index 620b2fd..7939977 100644
--- a/server/lobby.cpp
+++ b/server/lobby.cpp
@@ -17,12 +17,17 @@ void Lobby::handle_connect(Connection::p connection) {
void Lobby::handle_login(Client::p client) {
std::cout << "Client " << client->nick() << " entered the lobby." << std::endl;
- std::vector<std::string> game_modes;
-
- game_modes.push_back("1p test mode");
- game_modes.push_back("4p test mode");
-
- client->lobby_status(game_modes, boost::bind(&Lobby::handle_action, this, client, _1));
+ if(0) {//client->id != 0
+ //We check if player is in an ongoing game?
+
+ } else {
+ std::vector<std::string> game_modes;
+
+ game_modes.push_back("1p test mode");
+ game_modes.push_back("4p test mode");
+
+ client->lobby_status(game_modes, boost::bind(&Lobby::handle_action, this, client, _1));
+ }
}
void Lobby::handle_action(Client::p client, int game_mode) {