diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-16 18:58:05 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-16 18:58:05 +0000 |
commit | b9231c6613788ace1d7adfde1a0e028b21fae993 (patch) | |
tree | 974c93e302c3137100526d0a4a9e9586687c2efc /crawl-ref/source/clua.cc | |
parent | b8ba267261e0586c01fad1c5f280d1fd16cd44ca (diff) | |
download | crawl-ref-b9231c6613788ace1d7adfde1a0e028b21fae993.tar.gz crawl-ref-b9231c6613788ace1d7adfde1a0e028b21fae993.zip |
'DD' is now an alias for 'Dy'.
Clean up some corpse handling, add food_is_rotten() function instead
of manually checking special < 100 everywhere.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3283 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r-- | crawl-ref/source/clua.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc index e8bd6449dd..be10393602 100644 --- a/crawl-ref/source/clua.cc +++ b/crawl-ref/source/clua.cc @@ -1609,7 +1609,7 @@ static int food_rotting(lua_State *ls) bool rotting = false; if (item && item->base_type == OBJ_FOOD && item->sub_type == FOOD_CHUNK) { - rotting = item->special < 100; + rotting = food_is_rotten(*item); } lua_pushboolean(ls, rotting); return (1); |