Author: sapient
Date: Mon Aug 25 05:24:53 2008
New Revision: 28954
URL: http://svn.gna.org/viewcvs/wesnoth?rev=28954&view=rev
Log:
After further investigation, defender was indeed the secondary unit in defender
events. It's odd, but I'm leaving it alone for now.
Modified:
trunk/src/actions.cpp
Modified: trunk/src/actions.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/actions.cpp?rev=28954&r1=28953&r2=28954&view=diff
==============================================================================
--- trunk/src/actions.cpp (original)
+++ trunk/src/actions.cpp Mon Aug 25 05:24:53 2008
@@ -761,9 +761,8 @@
LOG_NG << "firing " << n << " event\n";
//prepare the event data for weapon filtering
config ev_data;
- bool is_defender_event = (n[0] == 'd');
- config& a_weapon_cfg = ev_data.add_child(is_defender_event? "second" :
"first");
- config& d_weapon_cfg = ev_data.add_child(is_defender_event? "first" :
"second");
+ config& a_weapon_cfg = ev_data.add_child("first");
+ config& d_weapon_cfg = ev_data.add_child("second");
if(a_stats_->weapon != NULL && units_.end() != a_) {
a_weapon_cfg = a_stats_->weapon->get_cfg();
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits