-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Ascending a staircase on z-level 9 crashes the game #63276
Comments
The game also shouldn't allow you to build something that you'd reasonably would assume would allow you to access a level that's actually out of bounds. This naturally means stairs and fixed ladders, but I'd argue it should also mean anything that provides a roof. It probably should also block you from placing a step ladder at the top level (with an appropriate error message). |
When I try the easier version of going down on -10, deep in the earth. I tried your version by placing stuff via the debug overmap editor and apparently pressed
|
Describe the bug
I tried to build stairs to z-level 10 to utilize the higher wind speed for wind power generation. However, aftering building a staircase on z-level 9 and ascending it, the game crashed.
Steps to reproduce
Expected behavior
The game does not crash, and the player character either moves to z-level 10 or stays at z-level 9 (with a message stating 9 is the highest possible z-level).
Also, the code and comments here should be changed if the highest z-level is 9 rather than 10.
Cataclysm-DDA/src/game_constants.h
Lines 70 to 75 in bfe455e
#60705 fixed a similar crash related to ascending with helicoptor, but that didn't seem to consider non-vehicle movement.
Screenshots
No response
Versions and configuration
c033542
Additional context
crash.log
The text was updated successfully, but these errors were encountered: