diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-27 13:32:04 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-27 13:32:04 +0000 |
commit | 33cd5f7627dde3804aba172a68b994def4de896d (patch) | |
tree | 7f658fb890a29d4f5c4ac3bc9693b4bd99d08c79 /crawl-ref/source/spl-cast.cc | |
parent | d80b2858a02272181c42f6efc027713820fc0f09 (diff) | |
download | crawl-ref-33cd5f7627dde3804aba172a68b994def4de896d.tar.gz crawl-ref-33cd5f7627dde3804aba172a68b994def4de896d.zip |
Disallow vaults placing shaft traps if shafts are disallowed on that
level.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10427 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r-- | crawl-ref/source/spl-cast.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index 8dfbd94993..d20fc01ee7 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -2272,12 +2272,13 @@ static unsigned int _breakpoint_rank(int val, const int breakpoints[], unsigned int result = 0; while (result < num_breakpoints && val >= breakpoints[result]) ++result; + return result; } const char* spell_hunger_string( spell_type spell ) { - if ( you.is_undead == US_UNDEAD ) + if (you.is_undead == US_UNDEAD) return "N/A"; const int hunger = spell_hunger(spell); |