diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-02-02 22:45:11 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-02-02 22:45:11 +0000 |
commit | 6e931b336a5291858511efd07ad1790b41caf606 (patch) | |
tree | 3955df4685f8a6894f8e2d2529d0baf6dc911cb8 /crawl-ref/source/ouch.cc | |
parent | b3af63244c752ffddeab5ceb61d1db2dd1197f5c (diff) | |
download | crawl-ref-6e931b336a5291858511efd07ad1790b41caf606.tar.gz crawl-ref-6e931b336a5291858511efd07ad1790b41caf606.zip |
Identify post-mortem inventory prior to chardump, so morgue.txt
will contain the id information. (David)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3387 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r-- | crawl-ref/source/ouch.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc index 589973fcd3..7030515c20 100644 --- a/crawl-ref/source/ouch.cc +++ b/crawl-ref/source/ouch.cc @@ -909,6 +909,18 @@ void end_game( scorefile_entry &se ) { bool dead = true; + for (int i = 0; i < ENDOFPACK; i++) + set_ident_flags( you.inv[i], ISFLAG_IDENT_MASK ); + + for (int i = 0; i < ENDOFPACK; i++) + { + if (you.inv[i].base_type != 0) + { + set_ident_type( you.inv[i].base_type, + you.inv[i].sub_type, ID_KNOWN_TYPE ); + } + } + if (!dump_char( morgue_name(se.death_time), !dead, true, &se )) { mpr("Char dump unsuccessful! Sorry about that."); @@ -989,18 +1001,6 @@ void end_game( scorefile_entry &se ) if (!crawl_state.seen_hups) more(); - for (int i = 0; i < ENDOFPACK; i++) - set_ident_flags( you.inv[i], ISFLAG_IDENT_MASK ); - - for (int i = 0; i < ENDOFPACK; i++) - { - if (you.inv[i].base_type != 0) - { - set_ident_type( you.inv[i].base_type, - you.inv[i].sub_type, ID_KNOWN_TYPE ); - } - } - invent( -1, true ); textcolor( LIGHTGREY ); clrscr(); |