introduce [object]delayed_variable_substitution=yes|no (def no)
(bug #18893, bug #19225) This isn't pretty since we are repeatedly parsing WML in the common case...
This commit is contained in:
parent
cd45d317b1
commit
ebd1e2030d
1 changed files with 4 additions and 1 deletions
|
@ -1891,7 +1891,10 @@ WML_HANDLER_FUNCTION(object, event_info, cfg)
|
|||
{
|
||||
text = cfg["description"].str();
|
||||
|
||||
u->add_modification("object", cfg);
|
||||
if(cfg["delayed_variable_substitution"].to_bool(false))
|
||||
u->add_modification("object", cfg);
|
||||
else
|
||||
u->add_modification("object", vconfig(cfg.get_parsed_config()));
|
||||
|
||||
resources::screen->select_hex(event_info.loc1);
|
||||
resources::screen->invalidate_unit();
|
||||
|
|
Loading…
Add table
Reference in a new issue