Add scroll_to_leader field to the [store_side] WML action

This commit is contained in:
Ignacio R. Morelle 2013-08-20 18:25:03 -04:00
parent cc26e1054a
commit 74915e33bf
2 changed files with 3 additions and 0 deletions

View file

@ -3,6 +3,8 @@ Version 1.11.6+dev:
* Updated translations: Lithuanian
* Lua API:
* Added scroll_to_leader field to wesnoth.sides table elements.
* WML engine:
* [store_side] now stores the scroll_to_leader attribute from sides.
* Miscellaneous and bug fixes:
* Added -256 and -512 color shifts to FADE_TO_BLACK and FADE_TO_BLACK_HOLD
macros to account for ToD color shifts greater than -31, guaranteeing complete

View file

@ -1012,6 +1012,7 @@ function wml_actions.store_side(cfg)
user_team_name = t.user_team_name,
color = t.color,
gold = t.gold,
scroll_to_leader = t.scroll_to_leader,
side = side_number
}
wesnoth.set_variable(string.format("%s[%u]", variable, index), container)