summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/teleport.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-15 01:43:08 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-15 01:46:46 -0800
commit370dc08f2832bbbdae426ea35a0de6b2bd31a804 (patch)
tree8d1e363744f35e49e92e00d9cfa75cbbc40c60b6 /crawl-ref/source/teleport.cc
parente4ea11efbb6154a89dfd13c8d58167de28e83ea9 (diff)
downloadcrawl-ref-370dc08f2832bbbdae426ea35a0de6b2bd31a804.tar.gz
crawl-ref-370dc08f2832bbbdae426ea35a0de6b2bd31a804.zip
Travel exclude speedup
Speed up is_excluded() by making the class exclude_set, which caches the set of excluded points, calculating the set only when exclusions are added or removed (or when an old level is loaded). NOTE: This recomputes the set of excluded points once upon entering level-map mode and once upon exiting it. If this takes to long on slow machines, this can be improved.
Diffstat (limited to 'crawl-ref/source/teleport.cc')
0 files changed, 0 insertions, 0 deletions