mail[Wesnoth-commits] r28806 - /branches/1.4/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:31:
Author: suokko
Date: Wed Aug 20 22:31:15 2008
New Revision: 28806

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

Modified:
    branches/1.4/src/playturn.cpp

Modified: branches/1.4/src/playturn.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.4/src/playturn.cpp?rev=28806&r1=28805&r2=28806&view=diff
==============================================================================
--- branches/1.4/src/playturn.cpp (original)
+++ branches/1.4/src/playturn.cpp Wed Aug 20 22:31:15 2008
@@ -215,10 +215,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:02:15 2008