From 6e07a2ffe11d4c303cc698221bb791e48677bcc4 Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Sat, 1 Mar 2008 08:10:53 +0000 Subject: [PATCH] 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. --- doc/fixes34.4 | 1 + src/mkmap.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/fixes34.4 b/doc/fixes34.4 index 5134ffc29..591c13c2b 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -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 diff --git a/src/mkmap.c b/src/mkmap.c index 2abe8a79d..5bc088d3d 100644 --- a/src/mkmap.c +++ b/src/mkmap.c @@ -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)