Okay, I've submitted a PR with a preliminary fix. It still doesn't work 100% properly when there's vertical scrolling also involved (and there are quite a few levels in TNZS like that), but it's a start, and I wanted to send all my changes before 0.193 anyway because I accidentally broke 16-bit sprites with a previous change.