-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
base: develop
Are you sure you want to change the base?
Conversation
Does anyone know the reason it was originally set to 32 below? |
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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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 |
please implement this soon |
For #21418
Change the limits for small scenery and walls only.
Multi-piece large scenery could cause problems and be placed incomplete.