mail[Wesnoth-commits] r43617 - /trunk/src/actions.cpp


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

Header


Content

Posted by alinktomine on June 20, 2010 - 12:14:
Author: alink
Date: Sun Jun 20 12:14:53 2010
New Revision: 43617

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43617&view=rev
Log:
Fix attacker still getting resting bonus after using attack with 
movement_used=0

Modified:
    trunk/src/actions.cpp

Modified: trunk/src/actions.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/actions.cpp?rev=43617&r1=43616&r2=43617&view=diff
==============================================================================
--- trunk/src/actions.cpp (original)
+++ trunk/src/actions.cpp Sun Jun 20 12:14:53 2010
@@ -1523,6 +1523,7 @@
        a_.get_unit().set_movement(a_.get_unit().movement_left() -
                a_.get_unit().attacks()[a_.weapon_].movement_used());
        a_.get_unit().set_state(unit::STATE_NOT_MOVED,false);
+       a_.get_unit().set_resting(false);
        d_.get_unit().set_resting(false);
 
        // If the attacker was invisible, she isn't anymore!




Related Messages


Powered by MHonArc, Updated Sun Jun 20 14:00:16 2010