I would expect a war ship to not even have doors between compartments - only move between compartments at the end of shift, by climbing stairs above the section wall and descend on the other side.
Above the waterline, it is common to have “loops” of passageways for movement of equipment and people (including casualties). Firemain stations will be spaced along such a loop because they are used to both fight nearby fires and dewater the compartments below.