Author: alink
Date: Sun May 10 02:39:07 2009
New Revision: 35520
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35520&view=rev
Log:
Fix dummy_path_calculator::cost (used 0, but A* heuristic need >= 1)
Modified:
trunk/src/pathfind.cpp
Modified: trunk/src/pathfind.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/pathfind.cpp?rev=35520&r1=35519&r2=35520&view=diff
==============================================================================
--- trunk/src/pathfind.cpp (original)
+++ trunk/src/pathfind.cpp Sun May 10 02:39:07 2009
@@ -505,5 +505,5 @@
double dummy_path_calculator::cost(const map_location&, const map_location&,
const double) const
{
- return 0.0;
-}
+ return 1.0;
+}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits