- change switch checking back to vanilla order.

This commit is contained in:
Christoph Oelckers 2021-05-19 19:25:32 +02:00
parent a3a65f184f
commit 9df70cd0df

View file

@ -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)