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

Fix #21418: Cannot place scenery high #21420

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

MaxMallon
Copy link
Contributor

For #21418
Change the limits for small scenery and walls only.
Multi-piece large scenery could cause problems and be placed incomplete.

@Gymnasiast Gymnasiast linked an issue Feb 17, 2024 that may be closed by this pull request
@tupaschoal tupaschoal changed the title Fix #21418 - Cannot place scenery high Fix #21418: Cannot place scenery high Feb 19, 2024
@mrmbernardi
Copy link
Contributor

Does anyone know the reason it was originally set to 32 below?

@733737
Copy link
Contributor

733737 commented Apr 4, 2024

I am desperately waiting on this feature. Just thought the devs should know ❤️

@@ -1700,7 +1700,7 @@ class TopToolbar final : public Window

auto screenPos = sourceScreenPos;
uint16_t maxPossibleHeight = ZoomLevel::max().ApplyTo(
std::numeric_limits<decltype(TileElement::BaseHeight)>::max() - 32);
std::numeric_limits<decltype(TileElement::BaseHeight)>::max() - 1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this subtraction really necessary? The scenery entry's height is already subtracted a few lines down. I guess it may still be needed because IIRC the max base height is a way the game marks elements to be removed. Not sure if that's still the case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean the -1, or the -32?
I thought I had already commented on this, but I don't any comment of mine anywhere.

The -32 is not needed, the -1 is, without it if you place something at the top level, I'm not even sure exactly what happens, but not what you'd want.

Copy link

This pull request has been marked as stale and will be closed in 14 days if no action is taken. To keep it open, leave a comment or remove the stale-pr label. If you're awaiting feedback from a developer, please send us a reminder (either here or on Discord).

@733737
Copy link
Contributor

733737 commented May 14, 2024

please implement this soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot place scenery in top 30 or so units, unless atop surface
5 participants