Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement even more obscure SetVehicleLocation behaviour #1303
SetVehicleLocation actually supports changing the map without doing a transition (not as thought in #1257) while the party is boarded but only when the target map has an event with the same event ID.
Because this sounds more like a bug than intended behaviour this was implemented using a normal teleport and without a check if the target map has a valid event. Doesn't match the RPG_RT behaviour due to the transition but this bug is strange and only used by a few VIPRPG games, not worth implementing perfectly.
The patch is good enough to fix the test case. I hope not even worse offenders appear. I reordered the code a bit so it matches other teleport code. Moved the vehicle reposition code after the "return false" in the if-block to ensure that the vehicle isn't moved before a teleport can start.