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
Support rectangular heightmaps #16840
Comments
|
Hi, I'm new to contributing and I'd like to take this issue. Is there anything else I should do to take the issue? |
|
@ArLough nope, that's all you have to do. For questions you can ask either here or on Discord. Good luck! |
|
Hi @Broxzier, I was wondering if you would like me to remove the error checking entirely or substitute it with a different error check that takes rectangular maps into consideration? If the latter, what would you like the error checking to look like? |
|
Hey @ArLough, the checks are not necessary anymore, so they can be removed entirely. Edit: Actually, there is a check for map size, but this only checks the width. For rectangular map support, this also needs to check the height, and also clamp them correctly. OpenRCT2/src/openrct2/world/MapGen.cpp Lines 669 to 674 in 5edc561
|
Substitute checks that assumed height = width with new checks distinguishing width from height
|
For anyone reading, this is up for grabs again. It might be worth looking into the comments of the PR linked above for insight |


With support for rectangular maps added to the game, the requirement for heightmaps to be square is no longer necessary.
OpenRCT2/src/openrct2/world/MapGen.cpp
Lines 662 to 667 in 5edc561
The code below the above check relies on the assumption that the width and height match. This needs to be refactored slightly. Some changes to the related functions might be necessary, though most already threat width and height separately.
OpenRCT2/src/openrct2/world/MapGen.cpp
Line 773 in 5edc561
The text was updated successfully, but these errors were encountered: