From: simon Date: Sun, 11 Sep 2005 14:53:39 +0000 (+0000) Subject: Oops; left some rogue diagnostics in. X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/commitdiff_plain/cdaf28375ed177a026849d3b343fe1e9eb453b91?hp=3fba56cbf5cad13401f183ca7e38a512e7090ae3 Oops; left some rogue diagnostics in. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@6291 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/inertia.c b/inertia.c index d45ecc8..6774ca2 100644 --- a/inertia.c +++ b/inertia.c @@ -1160,7 +1160,7 @@ static char *solve_game(game_state *state, game_state *currstate, } } -#ifndef TSP_DIAGNOSTICS +#ifdef TSP_DIAGNOSTICS printf("before reduction, moves are "); x = nodes[circuit[0]] / DP1 % w; y = nodes[circuit[0]] / DP1 / w; @@ -1246,7 +1246,7 @@ static char *solve_game(game_state *state, game_state *currstate, p = min(i, j); q = max(i, j); -#ifndef TSP_DIAGNOSTICS +#ifdef TSP_DIAGNOSTICS printf("optimising section from %d - %d\n", p, q); #endif @@ -1280,7 +1280,7 @@ static char *solve_game(game_state *state, game_state *currstate, if (dir > 0) i = q; /* resume loop from the right place */ -#ifndef TSP_DIAGNOSTICS +#ifdef TSP_DIAGNOSTICS printf("new section runs from %d - %d\n", p, q); #endif @@ -1316,7 +1316,7 @@ static char *solve_game(game_state *state, game_state *currstate, j = i; -#ifndef TSP_DIAGNOSTICS +#ifdef TSP_DIAGNOSTICS printf("during reduction, circuit is"); for (k = 0; k < circuitlen; k++) { int nc = nodes[circuit[k]]; @@ -1345,7 +1345,7 @@ static char *solve_game(game_state *state, game_state *currstate, } } -#ifndef TSP_DIAGNOSTICS +#ifdef TSP_DIAGNOSTICS printf("after reduction, moves are "); x = nodes[circuit[0]] / DP1 % w; y = nodes[circuit[0]] / DP1 / w;