summaryrefslogtreecommitdiff
path: root/aystar.c
diff options
context:
space:
mode:
Diffstat (limited to 'aystar.c')
-rw-r--r--aystar.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/aystar.c b/aystar.c
index e42fe37d9..229da27b1 100644
--- a/aystar.c
+++ b/aystar.c
@@ -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