diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-09 20:04:58 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-09 20:04:58 +0000 |
commit | b53b657c6063f971ba477f668d418a7bfc27e7d5 (patch) | |
tree | d2e5b9e900e94157efb1299d596c2b4f67ed5708 /crawl-ref/source/ouch.cc | |
parent | 9d17ec09d3e78f1428cc6318552a37fa1e03befd (diff) | |
download | crawl-ref-b53b657c6063f971ba477f668d418a7bfc27e7d5.tar.gz crawl-ref-b53b657c6063f971ba477f668d418a7bfc27e7d5.zip |
Use same time as highscore entry for morgue.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1825 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r-- | crawl-ref/source/ouch.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc index 903b3818b0..26d5e75610 100644 --- a/crawl-ref/source/ouch.cc +++ b/crawl-ref/source/ouch.cc @@ -865,13 +865,12 @@ void ouch( int dam, int death_source, kill_method_type death_type, end_game(se); } -static std::string morgue_name() +static std::string morgue_name(time_t when_crawl_got_even) { #ifdef SHORT_FILE_NAMES return "morgue"; #else // !SHORT_FILE_NAMES std::string name = "morgue-" + std::string(you.your_name); - time_t when_crawl_got_even = time(NULL); if (tm *loc = localtime(&when_crawl_got_even)) { @@ -978,7 +977,7 @@ void end_game( struct scorefile_entry &se ) invent( -1, true ); clrscr(); - if (!dump_char( morgue_name(), !dead, true )) + if (!dump_char( morgue_name(se.death_time), !dead, true )) { mpr("Char dump unsuccessful! Sorry about that."); if (!crawl_state.seen_hups) |