AliceLR / megazeux

Official MegaZeux git repository
https://www.digitalmzx.com/
GNU General Public License v2.0
126 stars 21 forks source link

Fix TELEPORT command for 1.x. #478

Closed AliceLR closed 2 months ago

AliceLR commented 2 months ago

In MegaZeux 1.x, a successful TELEPORT skips updating the board for everything after the teleport, as the board change is performed IMMEDIATELY in the command handler. This patch adds compatibility for this execution quirk. This also adds partial compatibility for the same quirk in the RESTORE PLAYER POSITION and EXCHANGE PLAYER POSITION commands, which unfortunately do the same thing but with the additional bug of running a partial cycle in the target board afterward.