diff --git a/src/playsim/p_switch.cpp b/src/playsim/p_switch.cpp index e0dd60e80..51dda852c 100644 --- a/src/playsim/p_switch.cpp +++ b/src/playsim/p_switch.cpp @@ -257,14 +257,14 @@ bool P_ChangeSwitchTexture (side_t *side, int useAgain, uint8_t special, bool *q { texture = side_t::top; } + else if ((Switch = TexAnim.FindSwitch(side->GetTexture(side_t::mid))) != NULL) + { + texture = side_t::mid; + } else if ((Switch = TexAnim.FindSwitch (side->GetTexture(side_t::bottom))) != NULL) { texture = side_t::bottom; } - else if ((Switch = TexAnim.FindSwitch (side->GetTexture(side_t::mid))) != NULL) - { - texture = side_t::mid; - } else { if (quest != NULL)