U406 - running and mimic mimicking closed doors

If running in a way that stops at closed doors, you should stop when coming
across a mimic mimicking a closed door too.
This commit is contained in:
cohrs
2003-04-14 05:10:06 +00:00
parent b53cdee210
commit 83ffd8077a
2 changed files with 5 additions and 1 deletions

View File

@@ -1906,7 +1906,10 @@ lookaround()
if (IS_ROCK(levl[x][y].typ) || (levl[x][y].typ == ROOM) ||
IS_AIR(levl[x][y].typ))
continue;
else if (closed_door(x,y)) {
else if (closed_door(x,y) ||
(mtmp && mtmp->m_ap_type == M_AP_FURNITURE &&
(mtmp->mappearance == S_hcdoor ||
mtmp->mappearance == S_vcdoor))) {
if(x != u.ux && y != u.uy) continue;
if(flags.run != 1) goto stop;
goto bcorr;