Implemented the "Wiggle fix".

See http://www.doomworld.com/vb/source-ports/70288-dynamic-wiggle-tall-sector-fix-for-fixed-point-software-renderer/

Also made a few vars static whilst there.