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

[RDY] Fix generation of subway stations and tunnels on Z-level -2 #22727

Merged
merged 1 commit into from Jan 16, 2018

Conversation

2 participants
@ZhilkinSerg
Copy link
Contributor

commented Jan 10, 2018

What was changed:

Fixes #22714.

Additional information:

Sub levels are generated by generate_sub function based on previous Z-levels. Running of this function starts from Z-level -1. Previously subway tunnels were generated on the same level, so there were no issues. I forgot to change return value requires_sub to true when there are subway stations on Z-level -1, when I moved subway stations and tunnels to Z-level -2 in #22550. Z-level -2 was simply not generated when there were no any overmap specials on the overmap requiring this level (these are labs, mines, silos, etc). When city size was set to large values there were simply not enough place on some of the overmaps to include these overmap specials, therefore Z-level -2 was not generated.

@ZhilkinSerg ZhilkinSerg changed the title Fix generation of subway stations and tunnels on Z-level -2 [RDY] Fix generation of subway stations and tunnels on Z-level -2 Jan 10, 2018

@kevingranade kevingranade merged commit e6ed7a3 into CleverRaven:master Jan 16, 2018

3 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage decreased (-0.9%) to 22.507%
Details
gorgon-ghprb Build finished.
Details

@ZhilkinSerg ZhilkinSerg deleted the ZhilkinSerg:mapgen-subway-fix branch Jan 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.