mail[Wesnoth-commits] r28807 - /trunk/src/playturn.cpp


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

Header


Content

Posted by paniemin on August 20, 2008 - 22:48:
Author: suokko
Date: Wed Aug 20 22:35:57 2008
New Revision: 28807

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28807&view=rev
Log:
Changed side_drop handling not to automaticaly assign AI for side if leader 
is dead (bug #12186)

Modified:
    trunk/src/playturn.cpp

Modified: trunk/src/playturn.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/playturn.cpp?rev=28807&r1=28806&r2=28807&view=diff
==============================================================================
--- trunk/src/playturn.cpp (original)
+++ trunk/src/playturn.cpp Wed Aug 20 22:35:57 2008
@@ -220,10 +220,8 @@
                std::vector<team*> allies;
                std::vector<std::string> options;
 
-               //see if the side still has a leader alive. If they have
-               //no leader, we assume they just want to be replaced by
-               //the AI.
-               if(have_leader) {
+               // We want to give host chance to decide what to do for side
+               {
                        utils::string_map t_vars;
                        options.push_back(_("Replace with AI"));
                        options.push_back(_("Replace with local player"));




Related Messages


Powered by MHonArc, Updated Wed Aug 20 23:20:50 2008