added [event][filter_side]<SSF keys> support
This commit is contained in:
parent
ebedd29c36
commit
5a16d21504
2 changed files with 8 additions and 0 deletions
|
@ -4,6 +4,7 @@ Version 1.9.6+svn:
|
|||
Serbian
|
||||
* WML engine:
|
||||
* new attribute team_name= in SSFs
|
||||
* added [event][filter_side]<SSF keys> support
|
||||
|
||||
Version 1.9.6:
|
||||
* Campaigns:
|
||||
|
|
|
@ -2878,6 +2878,13 @@ static bool process_event(game_events::event_handler& handler, const game_events
|
|||
}
|
||||
}
|
||||
|
||||
foreach (const vconfig &f, filters.get_children("filter_side"))
|
||||
{
|
||||
side_filter ssf(f);
|
||||
const int current_side = resources::controller->current_side();
|
||||
if(!ssf.match(current_side)) return false;
|
||||
}
|
||||
|
||||
vconfig::child_list special_filters = filters.get_children("filter_attack");
|
||||
bool special_matches = special_filters.empty();
|
||||
foreach (const vconfig &f, special_filters)
|
||||
|
|
Loading…
Add table
Reference in a new issue