mail[Wesnoth-commits] r37256 - /trunk/src/playmp_controller.cpp


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

Header


Content

Posted by AI0867 on July 27, 2009 - 04:55:
Author: ai0867
Date: Mon Jul 27 04:55:49 2009
New Revision: 37256

URL: http://svn.gna.org/viewcvs/wesnoth?rev=37256&view=rev
Log:
Make the playsingle changes in playmp too.

Modified:
    trunk/src/playmp_controller.cpp

Modified: trunk/src/playmp_controller.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/playmp_controller.cpp?rev=37256&r1=37255&r2=37256&view=diff
==============================================================================
--- trunk/src/playmp_controller.cpp (original)
+++ trunk/src/playmp_controller.cpp Mon Jul 27 04:55:49 2009
@@ -88,7 +88,8 @@
 void playmp_controller::play_side(const unsigned int team_index, bool save){
        do {
                player_type_changed_ = false;
-               end_turn_ = false;
+               if (!skip_next_turn_)
+                       end_turn_ = false;
 
                statistics::reset_turn_stats(teams_[team_index-1].save_id());
 
@@ -143,6 +144,8 @@
                }
        } while (player_type_changed_);
        //keep looping if the type of a team (human/ai/networked) has changed 
mid-turn
+
+       skip_next_turn_ = false;
 
        // Notify on turn change.
        utils::string_map player;




Related Messages


Powered by MHonArc, Updated Mon Jul 27 05:01:30 2009