summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monplace.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-05 17:51:39 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-05 17:54:28 -0600
commit9a89cf75dfd5721fb830d089dfc5141eb2a210e6 (patch)
treed481705997ecce0b1befadb243912a1e4ac10ef9 /crawl-ref/source/monplace.cc
parent5b5a6bc82d69360a130837a24ac56432a9ef6b6d (diff)
downloadcrawl-ref-9a89cf75dfd5721fb830d089dfc5141eb2a210e6.tar.gz
crawl-ref-9a89cf75dfd5721fb830d089dfc5141eb2a210e6.zip
Clean up flight status checks for monsters.
In mon-data.h, remove the M_FLIES and M_LEVITATE flags, and instead use a flight_type variable indicating flight status.
Diffstat (limited to 'crawl-ref/source/monplace.cc')
-rw-r--r--crawl-ref/source/monplace.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/monplace.cc b/crawl-ref/source/monplace.cc
index d5433b810c..1c00483f26 100644
--- a/crawl-ref/source/monplace.cc
+++ b/crawl-ref/source/monplace.cc
@@ -475,8 +475,7 @@ static bool _can_place_on_trap(int mon_type, trap_type trap)
if (mon_type == RANDOM_MONSTER)
return (false);
- return (mons_class_flag(mon_type, M_FLIES)
- || mons_class_flag(mon_type, M_LEVITATE)
+ return (mons_class_flies(mon_type) != FL_NONE
|| get_monster_data(mon_type)->size == SIZE_TINY);
}