diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-23 14:28:16 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-23 14:28:16 +0000 |
commit | ee70db5d6a4c06918ae40c5110f2e5390dfc27ea (patch) | |
tree | c6a2f8fbe594e23a9d5ec250952b69e9f85afa9c /crawl-ref/source/spl-cast.cc | |
parent | 26f69a4fe082aa588e0e2f5f8bccd7114a2ef688 (diff) | |
download | crawl-ref-ee70db5d6a4c06918ae40c5110f2e5390dfc27ea.tar.gz crawl-ref-ee70db5d6a4c06918ae40c5110f2e5390dfc27ea.zip |
Remove unused ravenous hunger state, and clean up food state checks a
bit more.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4535 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r-- | crawl-ref/source/spl-cast.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index 0e272fe8ae..8acf2495a7 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -664,7 +664,7 @@ bool cast_a_spell() } if (you.is_undead != US_UNDEAD && you.is_undead != US_SEMI_UNDEAD - && (you.hunger_state <= HS_STARVING + && (you.hunger_state == HS_STARVING || you.hunger <= spell_hunger( spell ))) { mpr("You don't have the energy to cast that spell."); |