summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-04 03:46:04 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-04 03:46:04 +0000
commitba61c9ea0ff447e24a9ad3f7f1b45160640c913b (patch)
treee3b233a5d44acae692c398e9653ab7ca76a5679d /crawl-ref/source/dungeon.cc
parente2f74e90f41b7324f8b4e2fa880a1b32df131e68 (diff)
downloadcrawl-ref-ba61c9ea0ff447e24a9ad3f7f1b45160640c913b.tar.gz
crawl-ref-ba61c9ea0ff447e24a9ad3f7f1b45160640c913b.zip
Add rock wall to the habitats list (for rock worms), and move monster
classes' associated habitats into the monsterentry struct. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3182 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r--crawl-ref/source/dungeon.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index ad0c0e276d..e7c4e87cc4 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -4329,9 +4329,9 @@ bool dgn_place_monster(mons_spec &mspec,
if (mons_is_unique(mid) && you.unique_creatures[mid])
return (false);
- const dungeon_feature_type habitat = monster_habitat(mid);
- if (habitat != DNGN_FLOOR)
- grd[vx][vy] = habitat;
+ const habitat_type habitat = mons_habitat(mid);
+ if (habitat != HT_NORMAL)
+ grd[vx][vy] = habitat2grid(habitat);
}
int mindex = NON_MONSTER;