Author: soliton
Date: Sat Oct 24 18:08:56 2009
New Revision: 39432
URL: http://svn.gna.org/viewcvs/wesnoth?rev=39432&view=rev
Log:
properly generate traits the first time so we don't have to do it twice
Modified:
trunk/src/unit.cpp
Modified: trunk/src/unit.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.cpp?rev=39432&r1=39431&r2=39432&view=diff
==============================================================================
--- trunk/src/unit.cpp (original)
+++ trunk/src/unit.cpp Sat Oct 24 18:08:56 2009
@@ -426,15 +426,11 @@
}
cfg_["upkeep"]="full";
- advance_to(t);
+ advance_to(t, real_unit);
if(real_unit) {
generate_name();
}
- // if not a real unit give only the 'musthave' traits
- generate_traits(!real_unit);
- reset_modifications();
- apply_modifications();
set_underlying_id();
// fill those after traits and modifs to have correct max
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits