hitsound was accidently mandatory, but it is not.

This commit is contained in:
titiger 2014-07-28 23:18:52 +02:00
parent 6fc59dc5f2
commit f66fd92a64
1 changed files with 14 additions and 12 deletions

View File

@ -967,6 +967,7 @@ void AttackSkillType::load(const XmlNode *sn, const XmlNode *attackBoostsNode,
throw megaglest_runtime_error("Damages percentages of projectiles don't sum up to 100 %");
}
if(sn->hasChild("hitsound")==true){
//general hit sounds, individual ones can be set in projectiles
const XmlNode *soundNode= sn->getChild("hitsound");
if(soundNode->getAttribute("enabled")->getBoolValue()){
@ -984,6 +985,7 @@ void AttackSkillType::load(const XmlNode *sn, const XmlNode *attackBoostsNode,
}
}
}
}
//splash
const XmlNode *splashNode= sn->getChild("splash");