For some reason, wall buttons look wrong after they were pressed and unpressed. Like: a button has 485 texture. You press it, it changes to 486, then after few frames, it should change back to 485, but instead changes to 487, you press it again, it becomes 488 etc.
This fixes it.
The lines were copied from p_switch.cc, lines 99, 111, 123.
For some reason, wall buttons look wrong after they were pressed and unpressed. Like: a button has 485 texture. You press it, it changes to 486, then after few frames, it should change back to 485, but instead changes to 487, you press it again, it becomes 488 etc. This fixes it. The lines were copied from p_switch.cc, lines 99, 111, 123.