[store_unit] should not clear variable if filter not matched

Discussion of all aspects of the game engine, including development of new and existing features.

Moderator: Forum Moderators

Post Reply
ott
Inactive Developer
Posts: 838
Joined: September 28th, 2004, 10:20 am

[store_unit] should not clear variable if filter not matched

Post by ott »

In game_events.cpp, the code for the [store_unit] tag clears the variable even if the filter does not match. So

Code: Select all

[store_unit]
variable=junk
  [filter]
  x,y=999,999
  [/filter]
[/store_unit]
(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.
This quote is not attributable to Antoine de Saint-Exupéry.
Post Reply