Going up stairs from a basement will cause the game to teleport me to a different set of stairs I didn't use to get down in the first place
Steps to reproduce the behavior:
Game should teleport me to the same set of stairs I used to get down


This happens to me in any house with two sets of stairs to the basement. Two locations lead down, but from the basement, the stairs only lead up to one of the two locations.
I can also teleport by peeking - if I use X to peek down the stairs, I may be teleported across the house to the other set of down stairs.

To add to this:
The issue happens on any location with more than 1 stair tile per map tile. This happened to me in a prison where I went down a set of stairs and came back up to a different set of stairs, teleporting me.
I took a small video clip of me useing a survival shelter as an example, which has 4 stairs both on the main floor and basement. You can see that regardless of which set of stairs I go down, I always 'land' on the one in the bottom right corner. The same thing happens going up the stairs as well. And although I did not include it in the clip, I can confirm that peeking does it as well.
video clip
Unless this can be solved by saving location somehow before using stairs, the mapgen portion of this is too intractable to be a release blocker
Retesting this in a build from today (0.D-12503-g14a261e7a1), I checked about 20 different houses and all of them are using the new matching upstairs/downstair maps with aligned staircases. None of the houses I saw had separate stairs in different parts of the house; they often had two staircases, but always adjacent.
The peek-to-teleport issue still exists, but is much less a concern when the stairs are directly adjacent. For example, here I peeked down the left stairs, and was teleported to the right stairs:

That peek issue should be fixed by #38244
Most helpful comment
This happens to me in any house with two sets of stairs to the basement. Two locations lead down, but from the basement, the stairs only lead up to one of the two locations.
I can also teleport by peeking - if I use
Xto peek down the stairs, I may be teleported across the house to the other set of down stairs.Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
No Rail Stations [No_Rail_Stations]
]