diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-05 17:51:39 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-05 17:54:28 -0600 |
commit | 9a89cf75dfd5721fb830d089dfc5141eb2a210e6 (patch) | |
tree | d481705997ecce0b1befadb243912a1e4ac10ef9 /crawl-ref/source/monplace.cc | |
parent | 5b5a6bc82d69360a130837a24ac56432a9ef6b6d (diff) | |
download | crawl-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.cc | 3 |
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); } |