mail[Wesnoth-commits] r43972 - /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 07, 2010 - 07:42:
Author: gabba
Date: Wed Jul  7 07:42:14 2010
New Revision: 43972

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43972&view=rev
Log:
Whiteboard: proper invalidation of hexes to update numbers correctly.

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=43972&r1=43971&r2=43972&view=diff
==============================================================================
--- trunk/src/whiteboard/validate_visitor.cpp (original)
+++ trunk/src/whiteboard/validate_visitor.cpp Wed Jul  7 07:42:14 2010
@@ -57,6 +57,11 @@
 
 void validate_visitor::visit_move(move_ptr move)
 {
+       //invalidate start and end hexes so number display is updated properly
+       resources::screen->invalidate(move->source_hex_);
+       resources::screen->invalidate(move->dest_hex_);
+
+       //validation proper
        bool valid = true;
 
        if (!(move->source_hex_.valid() && move->dest_hex_.valid()))




Related Messages


Powered by MHonArc, Updated Wed Jul 07 08:00:07 2010