From 6134bc21ae3ac291baf4fc4be506536dd1aecc05 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sun, 19 Jul 2009 23:24:36 +0000 Subject: 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 --- crawl-ref/source/monstuff.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'crawl-ref') 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); -- cgit v1.2.3-54-g00ecf