Update LoadXML to use the same field names as SaveXML

--HG--
extra : source : cb9d53843ea05307e3f3e9ee1ec68b47de839f4e
This commit is contained in:
Peter Courtemanche
2013-12-16 17:18:12 -08:00
parent f97c51ce44
commit f671b21007
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;
}
}