Unify stumbling on door mimic

This commit is contained in:
Pasi Kallinen
2015-04-22 09:23:54 +03:00
parent 75e7d837e6
commit bd69677933
3 changed files with 19 additions and 17 deletions

View File

@@ -4108,14 +4108,7 @@ boolean force;
return(0);
}
if ((mtmp = m_at(x,y)) &&
mtmp->m_ap_type == M_AP_FURNITURE &&
(mtmp->mappearance == S_hcdoor ||
mtmp->mappearance == S_vcdoor) &&
!Protection_from_shape_changers) {
stumble_onto_mimic(mtmp);
return(1);
}
if (stumble_on_door_mimic(x,y)) return 1;
} /* deal_with_floor_trap */
/* doors can be manipulated even while levitating/unskilled riding */