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

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 %"); 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 //general hit sounds, individual ones can be set in projectiles
const XmlNode *soundNode= sn->getChild("hitsound"); const XmlNode *soundNode= sn->getChild("hitsound");
if(soundNode->getAttribute("enabled")->getBoolValue()){ if(soundNode->getAttribute("enabled")->getBoolValue()){
@ -984,6 +985,7 @@ void AttackSkillType::load(const XmlNode *sn, const XmlNode *attackBoostsNode,
} }
} }
} }
}
//splash //splash
const XmlNode *splashNode= sn->getChild("splash"); const XmlNode *splashNode= sn->getChild("splash");