mail[Wesnoth-commits] r34130 - /trunk/src/server/game.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by soliton . de on March 26, 2009 - 00:05:
Author: soliton
Date: Thu Mar 26 00:05:42 2009
New Revision: 34130

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34130&view=rev
Log:
removed unused code

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=34130&r1=34129&r2=34130&view=diff
==============================================================================
--- trunk/src/server/game.cpp (original)
+++ trunk/src/server/game.cpp Thu Mar 26 00:05:42 2009
@@ -399,7 +399,6 @@
                return;
        }
        sides_[side_num - 1] = 0;
-       bool host_leave = false;
        // If the old player lost his last side, make him an observer.
        if (std::find(sides_.begin(), sides_.end(), old_player) == 
sides_.end()) {
                observers_.push_back(old_player);
@@ -410,20 +409,8 @@
                simple_wml::document observer_join;
                
observer_join.root().add_child("observer").set_attr_dup("name", 
old_player_name.c_str());
                send_data(observer_join, old_player);
-               // If the old player was the host of the game, choose another 
player.
-               /*if (old_player == owner_) {
-                       host_leave = true;
-                       if (players_.empty()) {
-                               owner_ = newplayer->first;
-                       } else {
-                               owner_ = players_.front();
-                       }
-                       notify_new_host();
-               }*/
        }
        change_controller(side_num - 1, newplayer, false);
-
-       if (host_leave) transfer_ai_sides();
 
        // If we gave the new side to an observer add him to players_.
        if (is_observer(newplayer->first)) {




Related Messages


Powered by MHonArc, Updated Thu Mar 26 00:20:47 2009