diff options
author | Ian C <ianc@noddybox.co.uk> | 2011-06-29 10:52:17 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2011-06-29 10:52:17 +0000 |
commit | 94331eacfce46ac6655b2065b4e0e5e09606b17c (patch) | |
tree | ee96bf0320e3ed220be9e98b300d7d98fb3be248 /dbox.c | |
parent | 2f66244d4d660570a0e7c391776f04d998643851 (diff) |
Fixed typo and stopped map growth warning at depth one.
Diffstat (limited to 'dbox.c')
-rw-r--r-- | dbox.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } } |