diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-21 00:50:58 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-21 00:57:49 -0800 |
commit | 9dbb0dcfa3b830d95778c6338d89a8e70f9be71d (patch) | |
tree | c6fe35575d8feb54df5c19cfe10ff997494c7621 /crawl-ref/source/wiz-mon.cc | |
parent | e077609ef9f797916eaf79c4818231b2dff3c6f5 (diff) | |
download | crawl-ref-9dbb0dcfa3b830d95778c6338d89a8e70f9be71d.tar.gz crawl-ref-9dbb0dcfa3b830d95778c6338d89a8e70f9be71d.zip |
player ghosts: bugfix, debugging/diagnostics
* Fixed bug where the player's ghost was never being placed in the
dungeon, even though the file was being properly loaded.
* The wizard command &^G can now both save and load bones files, so you
don't have to quit/restart/go-to-level multiple times to get a bones
file to load.
* All possible failure points for both loading and creating bones files
now generate diagnostic messages (when diagnostics is turned on).
Diffstat (limited to 'crawl-ref/source/wiz-mon.cc')
-rw-r--r-- | crawl-ref/source/wiz-mon.cc | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/crawl-ref/source/wiz-mon.cc b/crawl-ref/source/wiz-mon.cc index 1bb1622dbb..1f5e1b928a 100644 --- a/crawl-ref/source/wiz-mon.cc +++ b/crawl-ref/source/wiz-mon.cc @@ -12,13 +12,14 @@ #include "colour.h" #include "dbg-util.h" #include "delay.h" -#include "map_knowledge.h" +#include "files.h" #include "ghost.h" #include "goditem.h" #include "invent.h" #include "items.h" #include "jobs.h" #include "macro.h" +#include "map_knowledge.h" #include "message.h" #include "mon-place.h" #include "mon-pathfind.h" @@ -1298,4 +1299,18 @@ void debug_miscast( int target_index ) delete miscast; } + +void debug_ghosts() +{ + mpr("(C)reate or (L)oad bones file?", MSGCH_PROMPT); + const char c = tolower(getch()); + + if (c == 'c') + save_ghost(true); + else if (c == 'l') + load_ghost(false); + else + canned_msg(MSG_OK); +} + #endif |