mail[Wesnoth-commits] r33360 - /trunk/src/play_controller.cpp


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

Header


Content

Posted by cjhopman on March 05, 2009 - 22:24:
Author: cjhopman
Date: Thu Mar  5 22:24:00 2009
New Revision: 33360

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33360&view=rev
Log:
-fix bug #11031

Modified:
    trunk/src/play_controller.cpp

Modified: trunk/src/play_controller.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/play_controller.cpp?rev=33360&r1=33359&r2=33360&view=diff
==============================================================================
--- trunk/src/play_controller.cpp (original)
+++ trunk/src/play_controller.cpp Thu Mar  5 22:24:00 2009
@@ -745,6 +745,10 @@
 
                        if(u != units_.end()) {
                                const bool teleport = 
u->second.get_ability_bool("teleport",u->first);
+
+                               // if it's not the unit's turn, we reset its 
moves
+                               unit_movement_resetter move_reset(u->second, 
u->second.side() != player_number_);
+               
                                
mouse_handler_.set_current_paths(paths(map_,units_,u->first,
                                                       teams_,false,teleport, 
teams_[gui_->viewing_team()],
                                                       
mouse_handler_.get_path_turns()));




Related Messages


Powered by MHonArc, Updated Thu Mar 05 23:40:17 2009