diff options
author | Stefan O'Rear <stefanor@cox.net> | 2009-11-02 17:39:57 -0800 |
---|---|---|
committer | Stefan O'Rear <stefanor@cox.net> | 2009-11-02 17:41:23 -0800 |
commit | 3f3c0139c0eeb94c90b2afad0ba6af493c0f2b08 (patch) | |
tree | acd0560e74161ad6cfe0baae34f67f1f16dc79c4 /crawl-ref/source/spells3.cc | |
parent | 26d303da422033aba61e9a8bd7e894ccc8ac5574 (diff) | |
download | crawl-ref-3f3c0139c0eeb94c90b2afad0ba6af493c0f2b08.tar.gz crawl-ref-3f3c0139c0eeb94c90b2afad0ba6af493c0f2b08.zip |
Implement map viewing for other levels
There are three new commands described on the X? screen. Interlevel
travel works. Other levels are not currently highlighted by reachability;
let me know if you want this. Interface stolen from TAEB :). dpeg's
stair view is not yet in.
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r-- | crawl-ref/source/spells3.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index de848e0632..36d60ea032 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -47,6 +47,7 @@ #include "stash.h" #include "stuff.h" #include "traps.h" +#include "travel.h" #include "view.h" #include "xom.h" @@ -1445,7 +1446,9 @@ static bool _teleport_player(bool allow_control, bool new_abyss_area) while (true) { - show_map(pos, false, true); + level_pos lpos; + show_map(lpos, false, true); + pos = lpos.pos; redraw_screen(); #if defined(USE_UNIX_SIGNALS) && defined(SIGHUP_SAVE) && defined(USE_CURSES) @@ -2065,10 +2068,12 @@ bool project_noise(void) bool success = false; coord_def pos(1, 0); + level_pos lpos; mpr( "Choose the noise's source (press '.' or delete to select)." ); more(); - show_map(pos, false); + show_map(lpos, false); + pos = lpos.pos; redraw_screen(); |