diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-04-22 03:39:07 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-04-22 03:52:50 +0200 |
commit | 89f1b71c5d9bccc0541126aac03793bd3fc2dd2f (patch) | |
tree | e691a6b5ce8b57e2fd61bc6cebf31f144dc5e4e6 /crawl-ref/source/wiz-dgn.cc | |
parent | 1e8d292be959bf749768cd94803d0d00d3146fef (diff) | |
download | crawl-ref-89f1b71c5d9bccc0541126aac03793bd3fc2dd2f.tar.gz crawl-ref-89f1b71c5d9bccc0541126aac03793bd3fc2dd2f.zip |
Simplify map rot code.
Amnesia traps -- and thus, flat chance maprot -- is long since gone.
Of particular interest is the way old forget_map() was called from abyss.cc.
We had two functions:
forget_map(bool force)
forget_map(int chance = 100, bool = false)
Guess which one forget_map(true) called? Not that obvious that one prototype
was missing... No wonder no sane language has function overloading.
Diffstat (limited to 'crawl-ref/source/wiz-dgn.cc')
-rw-r--r-- | crawl-ref/source/wiz-dgn.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/wiz-dgn.cc b/crawl-ref/source/wiz-dgn.cc index 7fec38807a..0a650f4196 100644 --- a/crawl-ref/source/wiz-dgn.cc +++ b/crawl-ref/source/wiz-dgn.cc @@ -747,7 +747,7 @@ void debug_test_explore() _debug_kill_traps(); _debug_destroy_doors(); - forget_map(100); + forget_map(); // Remember where we are now. const coord_def where = you.pos(); |