diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-09-24 23:53:20 -0500 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-09-24 23:53:20 -0500 |
commit | c5811dc9575f38379451e5eac83cc0cbb0ec81a3 (patch) | |
tree | 199cfa5524796be79cf127ffec1fca2f7096ffb1 /crawl-ref | |
parent | 290984b8da1725e4ece1d0eb64a965f0fefa29af (diff) | |
download | crawl-ref-c5811dc9575f38379451e5eac83cc0cbb0ec81a3.tar.gz crawl-ref-c5811dc9575f38379451e5eac83cc0cbb0ec81a3.zip |
Fix [2866313]: The asphyxiation resistance check in
monsters::can_drown() was accidentally inverted when the resistance was
converted to boolean (oops).
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/mon-util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 2606cb7190..a11cb43c8f 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -3784,7 +3784,7 @@ bool monsters::can_drown() const // Mummies can fall apart in water or be incinerated in lava. // Ghouls, vampires, and demons can drown in water or lava. Others // just "sink like a rock", to never be seen again. - return (mons_res_asphyx(this) > 0 + return (!mons_res_asphyx(this) || mons_genus(type) == MONS_MUMMY || mons_genus(type) == MONS_GHOUL || mons_genus(type) == MONS_VAMPIRE |