fixing deprecation message for good

This commit is contained in:
Jérémy Rosen 2005-12-07 19:19:24 +00:00
parent bb6542bac9
commit 637f8f3c74

View file

@ -149,9 +149,11 @@ attack_type::attack_type(const config& cfg)
}
}
if(cfg.child("frame") || cfg.child("missile_frame") || cfg.child("sound")) {
LOG_STREAM(err, config) << "the animation for " << cfg["name"] << " is directly in the attack, please use [animation]\n" ;
}
if(animation_.empty()) {
animation_.push_back(unit_animation(cfg));
LOG_STREAM(err, config) << "the animation for " << cfg["name"] << "is directly in the attack, please use [animation]\n" ;
}
id_ = cfg["name"];