summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-06 17:19:59 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-06 17:19:59 +0000
commit3b4bf3d5d50ba068ef16430f34062ac8e47788ef (patch)
treed5d2292f852b16428e840b7806afcef34001d98b /crawl-ref/source/ouch.cc
parent2052c5d6371a9c8e877fe594c769fea8ee78c282 (diff)
downloadcrawl-ref-3b4bf3d5d50ba068ef16430f34062ac8e47788ef.tar.gz
crawl-ref-3b4bf3d5d50ba068ef16430f34062ac8e47788ef.zip
Don't save ghosts for quitters.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@794 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r--crawl-ref/source/ouch.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index 80a4b63cd6..eee99451cf 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -798,8 +798,12 @@ void ouch( int dam, int death_source, char death_type, const char *aux )
hiscores_new_entry(se);
logfile_new_entry(se);
- if (death_type != KILLED_BY_LEAVING && death_type != KILLED_BY_WINNING)
+ if (death_type != KILLED_BY_LEAVING
+ && death_type != KILLED_BY_WINNING
+ && death_type != KILLED_BY_QUITTING)
+ {
save_ghost();
+ }
}
#endif