added MAX_SWINGING_DOORS