diff options
author | Pete Hurst <pete@streamuniverse.tv> | 2013-06-23 00:55:40 +0100 |
---|---|---|
committer | Pete Hurst <pete@streamuniverse.tv> | 2013-06-23 02:43:29 +0100 |
commit | 03263390a7149b53ab21733b35923ca9e3fe887b (patch) | |
tree | c1b53946f7ae7cc17e175d6c1c1d61170b56443a /crawl-ref/source/mon-pick.cc | |
parent | ea6f5a6ac38f62d16bedf5699726425b00860c1b (diff) | |
download | crawl-ref-03263390a7149b53ab21733b35923ca9e3fe887b.tar.gz crawl-ref-03263390a7149b53ab21733b35923ca9e3fe887b.zip |
Add missing call to positional monster veto
Diffstat (limited to 'crawl-ref/source/mon-pick.cc')
-rw-r--r-- | crawl-ref/source/mon-pick.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-pick.cc b/crawl-ref/source/mon-pick.cc index 21c3549b25..b61f050a4f 100644 --- a/crawl-ref/source/mon-pick.cc +++ b/crawl-ref/source/mon-pick.cc @@ -140,6 +140,8 @@ bool positioned_monster_picker::veto(monster_type mon) // Fish zombies on land are helpless and uncool. if (!in_bounds(pos) || !monster_habitable_grid(mon, grd(pos))) return true; + // Optional positional veto + if (posveto && posveto(mon, pos)) return true; return monster_picker::veto(mon); } |