Wrong sound for exit switches

The Doom source code seems to reveal that at some point in development exit switches were meant to have the alternative switch sound rather than the normal. However, due to a logic error, the code to change the sound effect is never executed.

This problem is not replicated in the Super NES version, making it the only official version of Doom to address this bug.

Technical
The intention of this code, from (in file ) is clear // EXIT SWITCH? if (line->special == 11) sound = sfx_swtchx;

Unfortunately, a few lines up in the same function, the following is written: if (!useAgain) line->special = 0; Thus is zeroed out before it can be tested against the special number for an exit switch (exit switches are not considered repeatable).

Note also that secret exit switches (special number 51) are not handled at all.