]> granicus.if.org Git - nethack/commit
Xorns in stone outside Sokobon and other special levels
authorcohrs <cohrs>
Sat, 4 Feb 2006 23:51:26 +0000 (23:51 +0000)
committercohrs <cohrs>
Sat, 4 Feb 2006 23:51:26 +0000 (23:51 +0000)
commita1b0e084212f7707ac626cd965d0aee50d1f85f0
tree9d8d6f24959382d9782ceccbb642e57ef8e3d065
parent0bec6ce08eef6e3818aa01663f2e4e325df64ea7
Xorns in stone outside Sokobon and other special levels
First reported 12/13/2003, I think, but my archives contain more recent reports
too.  Special level specs like NON_PASSWALL and NON_DIGGABLE only apply
to the map sections for which they are specified.  So, on special levels of
Sokobon, the large surrounding area is stone, but have no special flags set.
So, it was possible to teleport a Xorn and have it appear in this outer area.

Addressed this by checking the perimeter of the map(s) and if all are
nondiggable and nonpassable, propagate this to the surrounding stone.
This appears to be the intent on such levels, so there is no need to
force the affected special levels to explicitly specify this.
doc/fixes34.4
src/sp_lev.c