wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src/server game.cpp


From: Jon Daniel
Subject: [Wesnoth-cvs-commits] wesnoth/src/server game.cpp
Date: Tue, 07 Jun 2005 03:32:41 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Jon Daniel <address@hidden>     05/06/07 07:32:41

Modified files:
        src/server     : game.cpp 

Log message:
        Removed some stuff ott added because it disallows control transfer

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/server/game.cpp.diff?tr1=1.34&tr2=1.35&r1=text&r2=text

Patches:
Index: wesnoth/src/server/game.cpp
diff -u wesnoth/src/server/game.cpp:1.34 wesnoth/src/server/game.cpp:1.35
--- wesnoth/src/server/game.cpp:1.34    Sat Jun  4 19:16:06 2005
+++ wesnoth/src/server/game.cpp Tue Jun  7 07:32:40 2005
@@ -217,16 +217,6 @@
 
        const std::string& side = cfg["side"];
 
-       std::set<std::string>::const_iterator k;
-       for(k = sides_taken_.begin(); k != sides_taken_.end(); ++k) {
-               if(*k == side) break;
-       }
-
-       if(k == sides_taken_.end()) {
-               static const std::string notfound = "Side not found";
-               return notfound;
-       }
-
        for(std::map<network::connection,std::string>::const_iterator j = 
sides_.begin(); j != sides_.end(); ++j) {
                if(j->second == side) {
                        static const std::string already = "This side is 
already controlled by a player";




reply via email to

[Prev in Thread] Current Thread [Next in Thread]