[Commits] [wesnoth/wesnoth] 850dc9: Fix objectives with variables (#992)
GitHub
noreply at github.com
Sat May 13 17:20:34 UTC 2017
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 850dc96a3a9d9f21348a92b6136e51a083d1f471
https://github.com/wesnoth/wesnoth/commit/850dc96a3a9d9f21348a92b6136e51a083d1f471
Author: Celtic Minstrel <CelticMinstrel at users.noreply.github.com>
Date: 2017-05-13 (Sat, 13 May 2017)
Changed paths:
M data/lua/wml/objectives.lua
M src/play_controller.cpp
Log Message:
-----------
Fix objectives with variables (#992)
[objectives] now supports delayed_variable_substitution=yes, which means that any
$variables or [insert_tag] are processed when the objectives are shown, rather than
when they are set.
In addition, if $|variable syntax is used to delay substitution of a specific variable,
the variable will now be substituted when the objectives are shown, rather than
being left unsubstituted.
More information about the Commits
mailing list