diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-06 11:59:08 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-06 11:59:08 +0000 |
commit | 994c1d68d101cb0796457123deac5c973e912d9d (patch) | |
tree | e08a36e9854bf613680db5e1b84b572e70e4e6b5 /crawl-ref/source/ouch.cc | |
parent | 2e41087ac692619484a551195e91c44d7e133f81 (diff) | |
download | crawl-ref-994c1d68d101cb0796457123deac5c973e912d9d.tar.gz crawl-ref-994c1d68d101cb0796457123deac5c973e912d9d.zip |
Fix 2148551: items not uppercased.
Other minor fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7157 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r-- | crawl-ref/source/ouch.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc index 6fb5819f63..06e68a04ae 100644 --- a/crawl-ref/source/ouch.cc +++ b/crawl-ref/source/ouch.cc @@ -1094,3 +1094,13 @@ void end_game( scorefile_entry &se ) get_ch(); end(0); } + +int actor_to_death_source(const actor* agent) +{ + if (agent->atype() == ACT_PLAYER) + return (NON_MONSTER); + else if (agent->atype() == ACT_MONSTER) + return (dynamic_cast<const monsters*>(agent)->mindex()); + else + return (NON_MONSTER); +} |