The name of this function is deceptive.  It has nothing to do with an entrance; it simply destroys walls around the object.  Similarly, entering_obj is deceptive; there's no requirement that the object be entering.  Someone might reuse this function one day to blow away all walls around an object for a totally unrelated reason.