diff options
author | KUDr <kudr@openttd.org> | 2006-05-27 16:12:16 +0000 |
---|---|---|
committer | KUDr <kudr@openttd.org> | 2006-05-27 16:12:16 +0000 |
commit | 5e73dce0e71791b87e5b096a890578eefcc26639 (patch) | |
tree | e4580db6e03032a997fce1392929b7190dc3b03d /aystar.c | |
parent | 3d01010440440cfbffd1e5d3b0cf1f23f0503a76 (diff) | |
download | openttd-5e73dce0e71791b87e5b096a890578eefcc26639.tar.xz |
(svn r4987) Feature: Merged YAPF into trunk. Thanks to devs for continuous support and users for testing.
Diffstat (limited to 'aystar.c')
-rw-r--r-- | aystar.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -19,6 +19,10 @@ #include "stdafx.h" #include "openttd.h" #include "aystar.h" + +int _aystar_stats_open_size; +int _aystar_stats_closed_size; + // This looks in the Hash if a node exists in ClosedList // If so, it returns the PathNode, else NULL static PathNode *AyStarMain_ClosedList_IsInList(AyStar *aystar, AyStarNode *node) @@ -234,6 +238,8 @@ int AyStarMain_Main(AyStar *aystar) { #endif if (r != AYSTAR_STILL_BUSY) /* We're done, clean up */ + _aystar_stats_open_size = aystar->OpenListHash.size; + _aystar_stats_closed_size = aystar->ClosedListHash.size; aystar->clear(aystar); // Check result-value |