[store_unit] should not clear variable if filter not matched
Moderator: Forum Moderators
[store_unit] should not clear variable if filter not matched
In game_events.cpp, the code for the [store_unit] tag clears the variable even if the filter does not match. So (or similarly false filters) will always clear junk.
Is anyone relying on this? I would like to change this code so that the variable is only cleared if the filter actually matches something.
EDIT: now in trunk r8987.
Code: Select all
[store_unit]
variable=junk
[filter]
x,y=999,999
[/filter]
[/store_unit]
Is anyone relying on this? I would like to change this code so that the variable is only cleared if the filter actually matches something.
EDIT: now in trunk r8987.
This quote is not attributable to Antoine de Saint-Exupéry.