From 3b4bf3d5d50ba068ef16430f34062ac8e47788ef Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sat, 6 Jan 2007 17:19:59 +0000 Subject: 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 --- crawl-ref/source/ouch.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/ouch.cc') 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 -- cgit v1.2.3-54-g00ecf