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 deprecation of [advancefrom], mark as already removed #6482

Merged
merged 1 commit into from Feb 2, 2022

Conversation

stevecotton
Copy link
Contributor

Forward-port of #6425, planning to just run the CI and then merge immediately.
Closes #6204.

The existing code searched for [units][advancefrom] instead of
[unit_type][advancefrom], so wasn't triggering. It was planned
for removal in 1.17, so simply mark it as already-removed in 1.15.3.

The deprecation warning is shown on stdout/stderr, but not in the
in-game UI, so it's generally not visible to players. I think it
would be better if it was visible, but OTOH it's something that's
easy for someone to check all add-ons for with a simple grep.

(cherry picked from commit f2fa807)

The existing code searched for `[units][advancefrom]` instead of
`[unit_type][advancefrom]`, so wasn't triggering. It was planned
for removal in 1.17, so simply mark it as already-removed in 1.15.3.

The deprecation warning is shown on stdout/stderr, but not in the
in-game UI, so it's generally not visible to players. I think it
would be better if it was visible, but OTOH it's something that's
easy for someone to check all add-ons for with a simple grep.

(cherry picked from commit f2fa807)
@stevecotton stevecotton added Bug Issues involving unexpected behavior. WML Issues involving the WML engine or WML APIs. Units Issues that involve unit definitions or their implementation in the engine. labels Feb 2, 2022
@stevecotton stevecotton self-assigned this Feb 2, 2022
@stevecotton stevecotton merged commit 3439d06 into wesnoth:master Feb 2, 2022
@stevecotton stevecotton deleted the advancefrom_removal_master branch February 2, 2022 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues involving unexpected behavior. Units Issues that involve unit definitions or their implementation in the engine. WML Issues involving the WML engine or WML APIs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[advancefrom] does nothing in 1.16
1 participant