display/map glitch in C quest temple

From a bug report:  in the irregularly
shaped temple on the C quest home level (the room where the leader is
located), the lit south wall contained a dark spot where a secret door
is located.  It stayed blank until you got right next to it rather than
just until you got to a good angle facing it.  (Magic mapping hides the
problem by showing that spot as a wall instead of leaving it as unseen;
you have to walk or teleport to that room in order to see the problem.)
The code that lights walls and doors which border lit rooms neglected
temporary walls produced by secret doors.
This commit is contained in:
nethack.rankin
2008-03-01 08:10:53 +00:00
parent f2e3953914
commit 6e07a2ffe1
2 changed files with 4 additions and 2 deletions

View File

@@ -369,6 +369,7 @@ blinded invisible hero can't see self as invisible via ';' or '/'
a hangup save while picking up gold from shop floor could duplicate that gold
jellyfish do not technically have a head
potion explosion during failed alchemy should awaken nearby monsters
lit south wall of C quest leader's room contained dark gap at secret door spot
Platform- and/or Interface-Specific Fixes

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)mkmap.c 3.5 2007/08/01 */
/* SCCS Id: @(#)mkmap.c 3.5 2008/02/29 */
/* Copyright (c) J. C. Collet, M. Stephenson and D. Cohrs, 1992 */
/* NetHack may be freely redistributed. See license for details. */
@@ -190,7 +190,8 @@ flood_fill_rm(sx, sy, rmno, lit, anyroom)
for(jj = sy-1; jj <= sy+1; jj++)
if(isok(ii,jj) &&
(IS_WALL(levl[ii][jj].typ) ||
IS_DOOR(levl[ii][jj].typ))) {
IS_DOOR(levl[ii][jj].typ) ||
levl[ii][jj].typ == SDOOR)) {
levl[ii][jj].edge = 1;
if(lit) levl[ii][jj].lit = lit;
if ((int) levl[ii][jj].roomno != rmno)