From c681f5749480524e265c7da390c95f2c8046ab00 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 27 Nov 2010 12:44:36 +0100 Subject: List of nicks now in correct order for all players. --- server/game.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'server') 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); } -- cgit v1.2.3