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


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

Header


Content

Posted by edb on October 30, 2006 - 11:51:
Author: edb
Date: Mon Oct 30 11:50:47 2006
New Revision: 14117

URL: http://svn.gna.org/viewcvs/wesnoth?rev=14117&view=rev
Log:
empty slots stay as empty slots

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=14117&r1=14116&r2=14117&view=diff
==============================================================================
--- trunk/src/server/game.cpp (original)
+++ trunk/src/server/game.cpp Mon Oct 30 11:50:47 2006
@@ -131,7 +131,8 @@
        //take control of any sides if they happen to have the same name as 
one of the descriptions
        config::child_itors sides = level_.child_range("side");
        for(; sides.first != sides.second; ++sides.first) {
-               (**sides.first)["controller"] = "human";
+               if ((**sides.first)["controller"] != "null")
+                       (**sides.first)["controller"] = "human";
        }
 
        describe_slots();




Related Messages


Powered by MHonArc, Updated Mon Oct 30 12:02:19 2006