Author: silene
Date: Sat May  2 10:58:42 2009
New Revision: 35409

URL: http://svn.gna.org/viewcvs/wesnoth?rev=35409&view=rev
Log:
Oops, previous commit missed the cleaning part.

Modified:
    trunk/src/game_display.cpp
    trunk/src/pathfind.hpp

Modified: trunk/src/game_display.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_display.cpp?rev=35409&r1=35408&r2=35409&view=diff
==============================================================================
--- trunk/src/game_display.cpp (original)
+++ trunk/src/game_display.cpp Sat May  2 10:58:42 2009
@@ -588,8 +588,7 @@
 void game_display::draw_movement_info(const map_location& loc)
 {
        // Search if there is a waypoint here
-       std::map<map_location, marked_route::waypoint>::iterator w =
-               route_.waypoints.find(loc);
+       marked_route::waypoint_map::iterator w = route_.waypoints.find(loc);
 
        // Don't use empty route or the first step (the unit will be there)
        if(w != route_.waypoints.end()

Modified: trunk/src/pathfind.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/pathfind.hpp?rev=35409&r1=35408&r2=35409&view=diff
==============================================================================
--- trunk/src/pathfind.hpp (original)
+++ trunk/src/pathfind.hpp Sat May  2 10:58:42 2009
@@ -145,12 +145,6 @@
 
 /**
  * Marks a route @a rt with waypoints assuming that a @unit u travels along it.
-
- * Function which, given a unit @a u and a route @a rt the unit can move on,
- * will return the number of turns it will take the unit to traverse the route.
- * adds rt.turn_waypoints (and also one at "end of path").
- * move_left is updated, but to 0 if not reachable in more than 1 turn
- * and to -1 if never reachable.
  */
 marked_route mark_route(const paths::route &rt, const unit &u,
        const team &viewing_team, const unit_map &units,


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

Reply via email to