Author: ai0867
Date: Wed Feb  4 02:06:27 2009
New Revision: 32585

URL: http://svn.gna.org/viewcvs/wesnoth?rev=32585&view=rev
Log:
When replacing the host, show his nick if he takes control of a side.

Modified:
    trunk/src/server/game.cpp

Modified: trunk/src/server/game.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/server/game.cpp?rev=32585&r1=32584&r2=32585&view=diff
==============================================================================
--- trunk/src/server/game.cpp (original)
+++ trunk/src/server/game.cpp Wed Feb  4 02:06:27 2009
@@ -1022,7 +1022,6 @@
                size_t side_num = side - sides_.begin();
                side_controllers_[side_num] = "human";
                sides_taken_[side_num] = true;
-               sides_[side_num] = owner_;
                // Check whether the host is actually a player and make him one 
if not.
                if (!is_player(owner_)) {
                        DBG_GAME << "making the owner a player...\n";
@@ -1031,6 +1030,7 @@
                        send_observerquit(player_info_->find(owner_));
                }
                send_change_controller(side_num + 1, 
player_info_->find(owner_));
+               sides_[side_num] = owner_;
 
                //send the host a notification of removal of this side
                char side_drop_buf[64];


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to