summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2011-06-29 10:52:17 +0000
committerIan C <ianc@noddybox.co.uk>2011-06-29 10:52:17 +0000
commit94331eacfce46ac6655b2065b4e0e5e09606b17c (patch)
treeee96bf0320e3ed220be9e98b300d7d98fb3be248
parent2f66244d4d660570a0e7c391776f04d998643851 (diff)
Fixed typo and stopped map growth warning at depth one.
-rw-r--r--dbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbox.c b/dbox.c
index 9cf8c96..aff6b69 100644
--- a/dbox.c
+++ b/dbox.c
@@ -857,7 +857,7 @@ static void SubSolve(const level_t *p_level, state_t *p_state, int p_depth,
if (p_depth >= p_max_depth)
{
- fprintf(stderr, "%s: blown maximum solution depeth of %d\n",
+ fprintf(stderr, "%s: blown maximum solution depth of %d\n",
g_name, p_max_depth);
return;
}
@@ -990,10 +990,10 @@ static void SubSolve(const level_t *p_level, state_t *p_state, int p_depth,
cache_size = g_cached_states;
}
- if (!warned && g_cached_states > max_cache)
+ if (p_depth > 1 && !warned && g_cached_states > max_cache)
{
printf("WARNING: got over four times the number of "
- "cached states at one depeth...\n");
+ "cached states at one depth...\n");
warned = TRUE;
}
}