Skip to content

Commit

Permalink
Disable wesnoth/wesnoth#4419 workaround on 1.15.4 and later
Browse files Browse the repository at this point in the history
  • Loading branch information
irydacea committed Aug 22, 2020
1 parent add9e8c commit 0f110bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Version 20200816+dev:
* Add `VARIABLE_COPY` and `VARIABLE_ARRAY_COPY` macros.
* Fix issues with `[harm_multiple_units]` crashing when there isn't a valid
attack source.
* Made `AMLA_BUG_4419_WORKAROUND` a no-op on 1.15.4 and later since mainline
#4419 is solved there.


Version 20200816:
Expand Down
9 changes: 9 additions & 0 deletions macros/amla.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
[/advancement]
#enddef

#ifver WESNOTH_VERSION <= 1.15.3
#
# Works around a nasty bug with the modifications system in Wesnoth 1.14 (and
# possibly others). This is needed for any AMLAs that change unit stats in a
Expand All @@ -100,9 +101,17 @@
# base variation during gameplay. If the current variation is supposed to be
# something dynamic then you're on your own. Godspeed.
#

#define AMLA_BUG_4419_WORKAROUND
[effect]
apply_to=variation
name=""
[/effect]
#enddef

#else

#define AMLA_BUG_4419_WORKAROUND
#enddef

#endif

0 comments on commit 0f110bc

Please sign in to comment.