Author: ai0867
Date: Wed Oct 1 02:27:06 2008
New Revision: 29797
URL: http://svn.gna.org/viewcvs/wesnoth?rev=29797&view=rev
Log:
* Made wmlunits operate more like the game. (remove logic the game lacks)
This fixes the "attacks with same name overwrite eachother" bug.
Modified:
trunk/data/tools/wmlunits
Modified: trunk/data/tools/wmlunits
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmlunits?rev=29797&r1=29796&r2=29797&view=diff
==============================================================================
--- trunk/data/tools/wmlunits (original)
+++ trunk/data/tools/wmlunits Wed Oct 1 02:27:06 2008
@@ -608,12 +608,7 @@
for i, attack in enumerate(this_unit.get_all("attack")):
aid = attack.get_text_val("name")
if aid:
- for already in attacks:
- if already.get_text_val("name") == aid:
- copy_attributes(attack, already)
- break
- else:
- attacks.append(attack)
+ attacks.append(attack)
else:
copy_attributes(attack, attacks[i])
return attacks
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits