From: cohrs Date: Mon, 25 Feb 2002 02:43:50 +0000 (+0000) Subject: converting SCORR to CORR unblocks vision X-Git-Tag: MOVE2GIT~3119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f5285b1ee0b59858932990c51ec76b45295415a;p=nethack converting SCORR to CORR unblocks vision - fix several cases where a point was unblocked by unblock_point wasn't called, directly or indirectly --- diff --git a/doc/fixes34.0 b/doc/fixes34.0 index c341723af..8601a415e 100644 --- a/doc/fixes34.0 +++ b/doc/fixes34.0 @@ -444,6 +444,7 @@ chaotic monsters can use Stormbringer; lawful monsters can use Excalibur No "corridor disappears" message if Vault guard dies off-level slip while mounting and levitating at will should not cause damage if you see a monster jump into a trap in a secret corridor, it's not secret +fixed a few places where unblock_point wasn't called but should have been Platform- and/or Interface-Specific Fixes diff --git a/src/apply.c b/src/apply.c index 060ee9de4..dfb742e59 100644 --- a/src/apply.c +++ b/src/apply.c @@ -278,6 +278,7 @@ use_stethoscope(obj) case SCORR: You_hear(hollow_str, "passage"); lev->typ = CORR; + unblock_point(rx,ry); if (Blind) feel_location(rx,ry); else newsym(rx,ry); return res; diff --git a/src/detect.c b/src/detect.c index 7457972f6..f5980c971 100644 --- a/src/detect.c +++ b/src/detect.c @@ -1046,10 +1046,12 @@ genericptr_t num; levl[zx][zy].doormask = D_NODOOR; } else levl[zx][zy].doormask = D_ISOPEN; + unblock_point(zx, zy); newsym(zx, zy); (*(int*)num)++; } else if(levl[zx][zy].typ == SCORR) { levl[zx][zy].typ = CORR; + unblock_point(zx, zy); newsym(zx, zy); (*(int*)num)++; } else if ((ttmp = t_at(zx, zy)) != 0) { diff --git a/src/music.c b/src/music.c index 017288f6a..6cdb54fb9 100644 --- a/src/music.c +++ b/src/music.c @@ -338,6 +338,7 @@ do_pit: chasm = maketrap(x,y,PIT); if (*in_rooms(x, y, SHOPBASE)) add_damage(x, y, 0L); levl[x][y].doormask = D_NODOOR; + unblock_point(x,y); newsym(x,y); break; } diff --git a/src/trap.c b/src/trap.c index 25cf6422a..ab5ddeca2 100644 --- a/src/trap.c +++ b/src/trap.c @@ -1314,6 +1314,7 @@ int style; if (cansee(bhitpos.x, bhitpos.y)) pline_The("boulder crashes through a door."); levl[bhitpos.x][bhitpos.y].doormask = D_BROKEN; + if (dist) unblock_point(bhitpos.x, bhitpos.y); } } tmp_at(DISP_END, 0);