If running in a way that stops at closed doors, you should stop when coming
across a mimic mimicking a closed door too.
avoid impossible when water freezes while hero is hiding under water
avoid impossible after eating the object the hero is hiding under
failed attempt to eat floor gold while polymorphed would lose the gold
+running that stops for closed doors should stop at mimics mimicking closed doors
Platform- and/or Interface-Specific Fixes
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;