aboutsummaryrefslogtreecommitdiff
path: root/bridges.R
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2016-02-24 19:01:42 +0000
committerSimon Tatham <anakin@pobox.com>2016-02-24 19:01:42 +0000
commitdeff331e5f8d46215b967b7eaa7f64b13878785a (patch)
tree54f4ce927acafd626af0fca4bc66f39b0f001ffb /bridges.R
parent1add03f7b8a502d4453f53f4ea6930d0e71a6bb0 (diff)
downloadpuzzles-deff331e5f8d46215b967b7eaa7f64b13878785a.zip
puzzles-deff331e5f8d46215b967b7eaa7f64b13878785a.tar.gz
puzzles-deff331e5f8d46215b967b7eaa7f64b13878785a.tar.bz2
puzzles-deff331e5f8d46215b967b7eaa7f64b13878785a.tar.xz
Bridges: use the new findloop for loop detection.
Bridges only needs a loop detector for its non-default 'don't allow loops' mode. But the one it had was using the graph-pruning strategy, which means it had the dumb-bell bug - two loops joined by a path would highlight the path as well as the loops. Switching to the new findloop system fixes that bug. A side effect is that I've been able to remove the 'scratch' array from the game_state, which was only used by the old loop finder, so that should save memory.
Diffstat (limited to 'bridges.R')
-rw-r--r--bridges.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridges.R b/bridges.R
index ea9f186..75df309 100644
--- a/bridges.R
+++ b/bridges.R
@@ -1,6 +1,6 @@
# -*- makefile -*-
-BRIDGES_EXTRA = dsf
+BRIDGES_EXTRA = dsf findloop
bridges : [X] GTK COMMON bridges BRIDGES_EXTRA bridges-icon|no-icon