From 94331eacfce46ac6655b2065b4e0e5e09606b17c Mon Sep 17 00:00:00 2001 From: Ian C Date: Wed, 29 Jun 2011 10:52:17 +0000 Subject: Fixed typo and stopped map growth warning at depth one. --- dbox.c | 6 +++--- 1 file 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; } } -- cgit v1.2.3