summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/files.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-30 01:56:14 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-30 01:56:14 +0000
commit8e16f1a94ec8926ea4dc93f66e26c8512337e005 (patch)
tree23d6a36bacf48cb3b4e4f0e65f9640cad41ac35a /crawl-ref/source/files.cc
parentd372bf943a90bb9ca949d92724b98762b25d57a6 (diff)
downloadcrawl-ref-8e16f1a94ec8926ea4dc93f66e26c8512337e005.tar.gz
crawl-ref-8e16f1a94ec8926ea4dc93f66e26c8512337e005.zip
FR 2130547: no ghosts in the ET.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7070 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r--crawl-ref/source/files.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc
index 9854086d10..e7285e8178 100644
--- a/crawl-ref/source/files.cc
+++ b/crawl-ref/source/files.cc
@@ -1839,8 +1839,12 @@ static void _restore_ghost_version( FILE *ghostFile,
void save_ghost( bool force )
{
- if (!force && you.your_level < 2)
+ // No ghosts on levels 1, 2, or the ET.
+ if (!force && (you.your_level < 2
+ || you.where_are_you == BRANCH_ECUMENICAL_TEMPLE))
+ {
return;
+ }
std::string cha_fil = make_filename( "bones", you.your_level,
you.where_are_you,