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: Trees disappear completely after a few years when they're not allowed to spread #8160

Merged
merged 1 commit into from May 20, 2020

Conversation

ldpl
Copy link
Contributor

@ldpl ldpl commented May 18, 2020

Disabling tree spread shouldn't mean imminent deforestation, there is "None" tree placement for that.

This simple patch replants the same tree in place when it dies so forests just stay where they are indefinitely.

src/tree_cmd.cpp Outdated Show resolved Hide resolved
@ldpl
Copy link
Contributor Author

ldpl commented May 18, 2020

UPD: slightly better way to do it so they don't all just grow to 4 trees per tile with 3 of them being eternal.

Copy link
Member

@LordAro LordAro left a comment

Choose a reason for hiding this comment

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

I like it

@LordAro LordAro added the backport requested This PR should be backport to current release (RC / stable) label May 18, 2020
@michicc michicc merged commit 8257275 into OpenTTD:master May 20, 2020
@ldpl ldpl deleted the save-trees branch July 14, 2020 08:26
@LordAro LordAro added backported This PR is backported to a current release (RC / stable) and removed backport requested This PR should be backport to current release (RC / stable) labels Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported This PR is backported to a current release (RC / stable)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants