summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-tornado.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-03-22 22:53:13 +0100
committerAdam Borowski <kilobyte@angband.pl>2012-03-22 22:54:42 +0100
commitb3339e87d0690ae7d8d42dc945134b847c8ffce7 (patch)
treebdff67323bb17447a5b3a31f3ed7b0765deb1af4 /crawl-ref/source/spl-tornado.cc
parentc9e50f07992f1d65a9b4d058d1d2cf4c82352f41 (diff)
downloadcrawl-ref-b3339e87d0690ae7d8d42dc945134b847c8ffce7.tar.gz
crawl-ref-b3339e87d0690ae7d8d42dc945134b847c8ffce7.zip
Replace "atype() == ACT_MONSTER" with "is_monster()" -- half the length.
Could probably just make it !is_player() instead, too.
Diffstat (limited to 'crawl-ref/source/spl-tornado.cc')
-rw-r--r--crawl-ref/source/spl-tornado.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-tornado.cc b/crawl-ref/source/spl-tornado.cc
index c79fea8c2e..72f39aeb9b 100644
--- a/crawl-ref/source/spl-tornado.cc
+++ b/crawl-ref/source/spl-tornado.cc
@@ -308,11 +308,11 @@ void tornado_damage(actor *caster, int dur)
}
leda = liquefied(victim->pos()) && victim->ground_level()
- || victim->atype() == ACT_MONSTER
+ || victim->is_monster()
&& _mons_is_unmovable(victim->as_monster());
if (!victim->res_wind())
{
- if (victim->atype() == ACT_MONSTER)
+ if (victim->is_monster())
{
monster *mon = victim->as_monster();
if (!leda)