Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Let autotravel happen on other z-levels #35785
Purpose of change
Fix autotravel not happening on other z-levels
Describe the solution
The path function added two tripoints together, but didnt account for the z coord, so it effectively doubled the z-coord when it wasnt 0, which made the path appear as a differnet z-level to players current position, so it bailed out.
Fixed this by manually amending the z-level of the combined tripoint afterwards.
Describe alternatives you've considered
Teleported to sewer, set autotravel route in overmap UI, it now works.
This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there: