diff options
| author | Simon Tatham <anakin@pobox.com> | 2016-02-24 19:31:54 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2016-02-24 19:31:54 +0000 |
| commit | c5500926bf7458aabb0e11945bfd24038bfeedee (patch) | |
| tree | 872f6241fa4aa779c0282934a02ef9bb6bcb8faf | |
| parent | 32643fab5583c6a0af6fd8373b226198d59d8b99 (diff) | |
| download | puzzles-c5500926bf7458aabb0e11945bfd24038bfeedee.zip puzzles-c5500926bf7458aabb0e11945bfd24038bfeedee.tar.gz puzzles-c5500926bf7458aabb0e11945bfd24038bfeedee.tar.bz2 puzzles-c5500926bf7458aabb0e11945bfd24038bfeedee.tar.xz | |
Pearl: reinstate a conditioned-out assertion.
I think this assertion must have been put under '#if 0' during early
development, and accidentally never taken out once the game started
actually working. Putting it back in doesn't cause the self-tests to
fail, so I'm reinstating it - if it does fail, I'd like to know about
it!
| -rw-r--r-- | pearl.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -1509,11 +1509,7 @@ static void dsf_update_completion(game_state *state, int *loopclass, assert(INGRID(state, bx, by)); /* should not have a link off grid */ bc = by*w+bx; -#if 0 assert(state->lines[bc] & F(dir)); /* should have reciprocal link */ -#endif - /* TODO put above assertion back in once we stop generating partially - * soluble puzzles. */ if (!(state->lines[bc] & F(dir))) return; ae = dsf_canonify(dsf, ac); |