mail[Wesnoth-commits] r20496 - /trunk/src/mouse_events.cpp


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

Header


Content

Posted by alinktomine on September 17, 2007 - 17:56:
Author: alink
Date: Mon Sep 17 17:55:37 2007
New Revision: 20496

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20496&view=rev
Log:
Optimize unit moves in shroud/fog:
Remove a redundant shroud/fog clearing, which can be very expensive if you
have a lot of units (here ~15 units = ~500 ms)

Modified:
    trunk/src/mouse_events.cpp

Modified: trunk/src/mouse_events.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/mouse_events.cpp?rev=20496&r1=20495&r2=20496&view=diff
==============================================================================
--- trunk/src/mouse_events.cpp (original)
+++ trunk/src/mouse_events.cpp Mon Sep 17 17:55:37 2007
@@ -1186,9 +1186,6 @@
                     clicked_u == units_.end() && 
!current_route_.steps.empty() &&
                     current_route_.steps.front() == selected_hex_) {
                move_unit_along_current_route(check_shroud);
-               if(check_shroud && clear_shroud(*gui_, status_, map_, 
gameinfo_, units_, teams_, team_num_ - 1)) {
-                       clear_undo_stack();
-               }
        } else {
                // we select a (maybe empty) hex
                gui_->unhighlight_reach();




Related Messages


Powered by MHonArc, Updated Mon Sep 17 18:20:36 2007