diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-19 23:24:36 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-19 23:24:36 +0000 |
commit | 6134bc21ae3ac291baf4fc4be506536dd1aecc05 (patch) | |
tree | a024dd3a6981f0b4bb586dd17622e5e1ec96549c /crawl-ref | |
parent | 0e60ff5ccfd3aefbfbf545dedb1d131a901e195c (diff) | |
download | crawl-ref-6134bc21ae3ac291baf4fc4be506536dd1aecc05.tar.gz crawl-ref-6134bc21ae3ac291baf4fc4be506536dd1aecc05.zip |
Backport the LOS fix for a vitrified Slime Pit vault to 0.5.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10342 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 408382d387..f185c639f2 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -766,12 +766,18 @@ static bool _slime_pit_unlock(bool silent) if (!silent) { for (int x = 0; x < GXM && !in_los; ++x) + { for (int y = 0; y < GYM; ++y) - if (grd[x][y] == DNGN_STONE_WALL && see_grid(x, y)) + { + if ((grd[x][y] == DNGN_STONE_WALL + || grd[x][y] == DNGN_CLEAR_ROCK_WALL) + && see_grid(x, y)) { in_los = true; break; } + } + } } replace_area_wrapper(DNGN_STONE_WALL, DNGN_CLEAR_ROCK_WALL); |