Author: tschmitz
Date: Thu Jul 21 21:11:36 2011
New Revision: 50369

URL: http://svn.gna.org/viewcvs/wesnoth?rev=50369&view=rev
Log:
Fix regarding set_arrow_brightness().

Modified:
    trunk/src/whiteboard/move.cpp

Modified: trunk/src/whiteboard/move.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/whiteboard/move.cpp?rev=50369&r1=50368&r2=50369&view=diff
==============================================================================
--- trunk/src/whiteboard/move.cpp (original)
+++ trunk/src/whiteboard/move.cpp Thu Jul 21 21:11:36 2011
@@ -225,7 +225,7 @@
 
        bool move_finished_completely = false;
 
-       arrow_->set_style(arrow::STYLE_HIGHLIGHTED);
+       set_arrow_brightness(ARROW_BRIGHTNESS_HIGHLIGHTED);
        fake_unit_->set_hidden(true);
 
        map_location final_location;
@@ -236,7 +236,7 @@
                try {
                        steps_finished = 
mouse_handler.move_unit_along_route(*route_, &final_location, 
owner_team.auto_shroud_updates());
                } catch (end_turn_exception&) {
-                       arrow_->set_style(arrow::STYLE_STANDARD);
+                       set_arrow_brightness(ARROW_BRIGHTNESS_STANDARD);
                        throw; // we rely on the caller to delete this action
                }
                // final_location now contains the final unit location
@@ -299,7 +299,7 @@
 
        if (!move_finished_completely)
        {
-               arrow_->set_style(arrow::STYLE_STANDARD);
+               set_arrow_brightness(ARROW_BRIGHTNESS_STANDARD);
                fake_unit_->set_hidden(false);
        }
        return move_finished_completely;


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to