Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use stairs above or below when they exist #38244

Merged
merged 1 commit into from
Mar 2, 2020

Conversation

anothersimulacrum
Copy link
Member

Summary

SUMMARY: None

Purpose of change

Seen in #36833 (comment)
Sometimes when you went down stairs in close proximity, it could move you to a different set of stairs - this is most visible in evac shelter and evac shelter 2, where going down the top left stairs could teleport you to the bottom right stairs.

Describe the solution

To fix this, if there are stairs below or above the stairs you're using, go directly to those instead of searching the map for stairs.

Testing

Go to evac shelter or evac shelter 2, and go down the top left of the 2x2 set of stairs. Before, going down and then up would move you to the bottom right set of stairs. Now, it leaves you on the same stairs.

Additional context

The only place that the weird behavior in #36833 will be seen after this will be when there are non-aligned stairs, which I think should be considered a bug.

@anothersimulacrum anothersimulacrum force-pushed the stairs branch 3 times, most recently from 89510f8 to ed49c34 Compare February 22, 2020 21:26
@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Fields / Furniture / Terrain / Traps Objects that are part of the map or its features. Map / Mapgen Overmap, Mapgen, Map extras, Map display Z-levels Levels below and above ground. labels Feb 24, 2020
Sometimes when you went down stairs in close proximity, it could move
you to a different set of stairs - this is most visible in evac shelter
0 and 2, where going down the top left stairs could teleport you to the
  bottom right stairs. To fix this, if there are stairs below or above
the stairs you're using, go directly to those instead of searching the
map for stairs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Fields / Furniture / Terrain / Traps Objects that are part of the map or its features. Map / Mapgen Overmap, Mapgen, Map extras, Map display Z-levels Levels below and above ground.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants