diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-11-27 12:44:36 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-11-27 12:44:36 +0100 |
commit | c681f5749480524e265c7da390c95f2c8046ab00 (patch) | |
tree | 91b620045e0d2f47e197eabfa4ebaa5e8df493eb /server | |
parent | 715368035c155adf7b4797619097f4b8e3782053 (diff) |
List of nicks now in correct order for all players.
Diffstat (limited to 'server')
-rw-r--r-- | server/game.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/game.cpp b/server/game.cpp index de36f2e..268439f 100644 --- a/server/game.cpp +++ b/server/game.cpp @@ -54,8 +54,17 @@ void Game::start() { pl.push_back(players[3].client->nick()); players[0].client->game_start(boost::bind(&Game::handle_ready, shared_from_this()), pl); + + pl.erase(pl.begin()); + pl.push_back(players[0].client->nick()); players[1].client->game_start(boost::bind(&Game::handle_ready, shared_from_this()), pl); + + pl.erase(pl.begin()); + pl.push_back(players[1].client->nick()); players[2].client->game_start(boost::bind(&Game::handle_ready, shared_from_this()), pl); + + pl.erase(pl.begin()); + pl.push_back(players[2].client->nick()); players[3].client->game_start(boost::bind(&Game::handle_ready, shared_from_this()), pl); } |