Update LoadXML to use the same field names as SaveXML

--HG--
branch : nfb
This commit is contained in:
Peter Courtemanche
2013-12-16 17:18:12 -08:00
parent 5170722a4c
commit 5923046cd8
2 changed files with 4 additions and 4 deletions

View File

@@ -47,10 +47,10 @@ void KRAmbientZone::loadXML(tinyxml2::XMLElement *e)
m_gradient_distance = 0.25f;
}
m_ambient = e->Attribute("ambient");
m_ambient = e->Attribute("sample");
m_ambient_gain = 1.0f;
if(e->QueryFloatAttribute("ambient_gain", &m_ambient_gain) != tinyxml2::XML_SUCCESS) {
if(e->QueryFloatAttribute("gain", &m_ambient_gain) != tinyxml2::XML_SUCCESS) {
m_ambient_gain = 1.0f;
}
}

View File

@@ -46,10 +46,10 @@ void KRReverbZone::loadXML(tinyxml2::XMLElement *e)
m_gradient_distance = 0.25f;
}
m_reverb = e->Attribute("reverb");
m_reverb = e->Attribute("sample");
m_reverb_gain = 1.0f;
if(e->QueryFloatAttribute("reverb_gain", &m_reverb_gain) != tinyxml2::XML_SUCCESS) {
if(e->QueryFloatAttribute("gain", &m_reverb_gain) != tinyxml2::XML_SUCCESS) {
m_reverb_gain = 1.0f;
}
}