mail[Wesnoth-commits] r44899 - /trunk/src/whiteboard/validate_visitor.cpp


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

Header


Content

Posted by gabrielmorin on July 30, 2010 - 04:01:
Author: gabba
Date: Fri Jul 30 04:01:25 2010
New Revision: 44899

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44899&view=rev
Log:
Whiteboard: properly invalidate planned recruit location when validating 
actions.

Modified:
    trunk/src/whiteboard/validate_visitor.cpp

Modified: trunk/src/whiteboard/validate_visitor.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/whiteboard/validate_visitor.cpp?rev=44899&r1=44898&r2=44899&view=diff
==============================================================================
--- trunk/src/whiteboard/validate_visitor.cpp (original)
+++ trunk/src/whiteboard/validate_visitor.cpp Fri Jul 30 04:01:25 2010
@@ -166,6 +166,9 @@
 
 void validate_visitor::visit_recruit(recruit_ptr recruit)
 {
+       //invalidate recruit hex so number display is updated properly
+       resources::screen->invalidate(recruit->recruit_hex_);
+
        //Check that destination hex is still free
        if(resources::units->find(recruit->recruit_hex_) != 
resources::units->end())
        {




Related Messages


Powered by MHonArc, Updated Fri Jul 30 04:20:26 2010