SW sequence break fix (and unused variable removal)
The main purpose of this PR is fixing the sequence break reported here:
https://forum.zdoom.org/viewtopic.php?f=340&t=69246
https://forums.duke4.net/topic/11211-voidsw-public-beta/page__view__findpost__p__345153
Edited by NY00123