mail[Wesnoth-commits] r14118 - /branches/1.2/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:52:
Author: edb
Date: Mon Oct 30 11:52:17 2006
New Revision: 14118

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

Modified:
    branches/1.2/src/server/game.cpp

Modified: branches/1.2/src/server/game.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.2/src/server/game.cpp?rev=14118&r1=14117&r2=14118&view=diff
==============================================================================
--- branches/1.2/src/server/game.cpp (original)
+++ branches/1.2/src/server/game.cpp Mon Oct 30 11:52:17 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 18:01:25 2006