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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user