Author: cjhopman
Date: Fri Apr 24 18:41:50 2009
New Revision: 35163
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35163&view=rev
Log:
- tighten up threshold in case where node is outdated
Modified:
trunk/src/astarsearch.cpp
Modified: trunk/src/astarsearch.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/astarsearch.cpp?rev=35163&r1=35162&r2=35163&view=diff
==============================================================================
--- trunk/src/astarsearch.cpp (original)
+++ trunk/src/astarsearch.cpp Fri Apr 24 18:41:50 2009
@@ -155,7 +155,7 @@
node& next = nodes[index(locs[i])];
- double thresh = (next.in - search_counter <= 1u) ?
next.g : 1e25;
+ double thresh = (next.in - search_counter <= 1u) ?
next.g : stop_at;
if (n.g >= thresh) continue;
double cost = n.g + calc->cost(n.curr, locs[i], n.g);
if (cost >= thresh) continue;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits