mail[Wesnoth-commits] r33395 - /trunk/src/replay.cpp


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

Header


Content

Posted by alinktomine on March 07, 2009 - 21:53:
Author: alink
Date: Sat Mar  7 21:53:28 2009
New Revision: 33395

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33395&view=rev
Log:
Add error message if a 1.6RC1 replay had a pathfinding error

Modified:
    trunk/src/replay.cpp

Modified: trunk/src/replay.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/replay.cpp?rev=33395&r1=33394&r2=33395&view=diff
==============================================================================
--- trunk/src/replay.cpp (original)
+++ trunk/src/replay.cpp Sat Mar  7 21:53:28 2009
@@ -1123,6 +1123,10 @@
                                }
 
                                steps = a_star_search(src, dst, 10000.0, 
&calc, map.w(), map.h(), &allowed_teleports).steps;
+
+                               if (steps.empty()) {
+                                       replay::throw_error("Pathfinding 
fails in the backwards compatibility code for 1.6RC1");
+                               }
                        }
 
                        ::move_unit(&disp, map, units, teams, steps, NULL, 
NULL, NULL, true, true, true);




Related Messages


Powered by MHonArc, Updated Sat Mar 07 22:20:35 2009