Author: anonymissimus
Date: Thu May 12 16:31:45 2011
New Revision: 49492
URL: http://svn.gna.org/viewcvs/wesnoth?rev=49492&view=rev
Log:
added [event][filter_side]<SSF keys> support
Modified:
trunk/changelog
trunk/src/game_events.cpp
Modified: trunk/changelog
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/changelog?rev=49492&r1=49491&r2=49492&view=diff
==============================================================================
--- trunk/changelog (original)
+++ trunk/changelog Thu May 12 16:31:45 2011
@@ -4,6 +4,7 @@
Serbian
* WML engine:
* new attribute team_name= in SSFs
+ * added [event][filter_side]<SSF keys> support
Version 1.9.6:
* Campaigns:
Modified: trunk/src/game_events.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_events.cpp?rev=49492&r1=49491&r2=49492&view=diff
==============================================================================
--- trunk/src/game_events.cpp (original)
+++ trunk/src/game_events.cpp Thu May 12 16:31:45 2011
@@ -2878,6 +2878,13 @@
}
}
+ 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)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits