mail[Wesnoth-commits] r43532 - /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 June 17, 2010 - 19:28:
Author: alink
Date: Thu Jun 17 19:28:15 2010
New Revision: 43532

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43532&view=rev
Log:
Fix bugs when a waypoint is unreachable

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=43532&r1=43531&r2=43532&view=diff
==============================================================================
--- trunk/src/mouse_events.cpp (original)
+++ trunk/src/mouse_events.cpp Thu Jun 17 19:28:15 2010
@@ -388,6 +388,10 @@
                                route.steps.insert(route.steps.end(),
                                        
inter_route.steps.begin()+1,inter_route.steps.end());
                                route.move_cost+=inter_route.move_cost;
+                       } else {
+                               // we can't reach dst, stop the route at the 
last src
+                               // as the normal case do
+                               break;
                        }
                }
        }




Related Messages


Powered by MHonArc, Updated Thu Jun 17 19:40:15 2010