diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-09 15:30:30 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-09 15:30:30 +0000 |
commit | 1798905e716ab714da4ec70262532988b58356cd (patch) | |
tree | 12e1fa445562b6840492ae4f6acabed0199f3ab5 /crawl-ref/source/chardump.cc | |
parent | 55826a15202764602ab3ad81cdeb3dd37ee9cb0b (diff) | |
download | crawl-ref-1798905e716ab714da4ec70262532988b58356cd.tar.gz crawl-ref-1798905e716ab714da4ec70262532988b58356cd.zip |
Added ice statues.
Monster spells now use spell_type instead of the old mon_spell_type.
Fixed buggy behaviour when banished from Labyrinth.
DGL_WHEREIS was not including current time, fixed.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1275 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/chardump.cc')
-rw-r--r-- | crawl-ref/source/chardump.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/chardump.cc b/crawl-ref/source/chardump.cc index 3319e307ad..f7deb16869 100644 --- a/crawl-ref/source/chardump.cc +++ b/crawl-ref/source/chardump.cc @@ -861,7 +861,7 @@ static void sdump_spells(const std::string &, std::string & text) for (int j = 0; j < 52; j++) { const char letter = index_to_letter( j ); - const int spell = get_spell_by_letter( letter ); + const spell_type spell = get_spell_by_letter( letter ); if (spell != SPELL_NO_SPELL) { @@ -1051,7 +1051,9 @@ void resists_screen() void whereis_record(const char *status) { const std::string file_name = - morgue_directory() + you.your_name + std::string(".where"); + morgue_directory() + + strip_filename_unsafe_chars(you.your_name) + + std::string(".where"); if (FILE *handle = fopen(file_name.c_str(), "w")) { |