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


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

Header


Content

Posted by gabrielmorin on July 31, 2010 - 12:15:
Author: gabba
Date: Sat Jul 31 12:15:20 2010
New Revision: 44978

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44978&view=rev
Log:
Removed a boolean that was used only once.

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=44978&r1=44977&r2=44978&view=diff
==============================================================================
--- trunk/src/mouse_events.cpp (original)
+++ trunk/src/mouse_events.cpp Sat Jul 31 12:15:20 2010
@@ -468,8 +468,6 @@
        undo_ = false;
        if (mouse_handler_base::left_click(x, y, browse)) return false;
 
-       bool check_shroud = current_team().auto_shroud_updates();
-
        //we use the last registered highlighted hex
        //since it's what update our global state
        map_location hex = last_hex_;
@@ -497,7 +495,6 @@
                orig_paths = current_paths_;
                attack_from = current_unit_attacks_from(hex);
        } // end planned unit map scope
-
 
        //see if we're trying to do a attack or move-and-attack
        if(((!browse && !commands_disabled) || 
resources::whiteboard->is_active()) && attack_from.valid()) {
@@ -610,7 +607,7 @@
                        //register the mouse-UI waypoints into the unit's 
waypoints
                        u->waypoints() = waypoints_;
 
-                       move_unit_along_current_route(check_shroud);
+                       
move_unit_along_current_route(current_team().auto_shroud_updates());
                        // during the move, we may have selected another unit
                        // (but without triggering a select event (command 
was disabled)
                        // in that case reselect it now to fire the event (+ 
anim & sound)




Related Messages


Powered by MHonArc, Updated Sat Jul 31 12:20:17 2010