diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llxml/llcontrol.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/linden/indra/llxml/llcontrol.cpp b/linden/indra/llxml/llcontrol.cpp index 1d1f024..452167e 100644 --- a/linden/indra/llxml/llcontrol.cpp +++ b/linden/indra/llxml/llcontrol.cpp | |||
@@ -1099,6 +1099,15 @@ U32 LLControlGroup::loadFromFile(const std::string& filename, bool set_default_v | |||
1099 | } | 1099 | } |
1100 | */ | 1100 | */ |
1101 | 1101 | ||
1102 | // [RLVa:KB] - Checked: 2010-06-20 (RLVa-1.1.2a) | Added: RLVa-1.1.2a | ||
1103 | // HACK-RLVa: bad code but it's just a temporary measure to provide a smooth changeover from the old to the new rebranded settings | ||
1104 | if ( (name.length() >= 14) && (0 == name.find("RestrainedLife")) ) | ||
1105 | { | ||
1106 | // Transparently convert the old settings name to the new one while preserving the user override | ||
1107 | name = "RestrainedLove" + name.substr(14); | ||
1108 | } | ||
1109 | // [/RLVa:KB] | ||
1110 | |||
1102 | // If the control exists just set the value from the input file. | 1111 | // If the control exists just set the value from the input file. |
1103 | LLControlVariable* existing_control = getControl(name); | 1112 | LLControlVariable* existing_control = getControl(name); |
1104 | if(existing_control) | 1113 | if(existing_control) |