Author: boucman
Date: Sun Mar 29 12:42:05 2009
New Revision: 34238
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34238&view=rev
Log:
forgot a small change
Modified:
trunk/src/unit_animation.cpp
Modified: trunk/src/unit_animation.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_animation.cpp?rev=34238&r1=34237&r2=34238&view=diff
==============================================================================
--- trunk/src/unit_animation.cpp (original)
+++ trunk/src/unit_animation.cpp Sun Mar 29 12:42:05 2009
@@ -35,6 +35,7 @@
names.push_back("movement_anim");
names.push_back("poison_anim");
names.push_back("recruit_anim");
+ names.push_back("recruiting_anim");
names.push_back("standing_anim");
names.push_back("teleport_anim");
names.push_back("victory_anim");
@@ -456,6 +457,14 @@
animations.push_back(unit_animation(anim));
}
+ expanded_cfg = unit_animation::prepare_animation(cfg,"recruiting_anim");
+ foreach (config &anim, expanded_cfg.child_range("recruiting_anim"))
+ {
+ anim["apply_to"] = "recruiting";
+ if (anim["layer"].empty()) anim["layer"] = default_layer;
+ animations.push_back(unit_animation(anim));
+ }
+
expanded_cfg = unit_animation::prepare_animation(cfg,"standing_anim");
foreach (config &anim, expanded_cfg.child_range("standing_anim"))
{
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits