mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-12 21:51:19 +00:00
Clear state variables used by the LIMIT_RECRUITS WML macro on victory
This commit is contained in:
parent
092031e5e1
commit
003aa541f0
@ -18,6 +18,8 @@ Version 1.11.8+dev:
|
||||
* Fixed possible invalid memory access issue in the MP sides configuration
|
||||
code causing crashes for some users (bug #21449).
|
||||
* Fixed broken image references in the Gameplay -> Time of Day help topic.
|
||||
* The internal variables used by the LIMIT_RECRUITS WML macro are now
|
||||
cleared on victory.
|
||||
|
||||
Version 1.11.8:
|
||||
* Add-ons client:
|
||||
|
@ -102,6 +102,14 @@
|
||||
{VARIABLE side_{SIDE}_limited_recruits_length -1}
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
name=victory
|
||||
|
||||
# Clear our variables on victory
|
||||
|
||||
{CLEAR_VARIABLE side_{SIDE}_limited_recruits,side_{SIDE}_limited_recruits_length}
|
||||
[/event]
|
||||
|
||||
# when the side recruits this given type for the first time, it's recorded
|
||||
# in an array that holds info on all the recruit-limited types for this side
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user