- bugfix to support \n in scenario and tutorial lng files

This commit is contained in:
Mark Vejvoda 2011-09-16 03:17:49 +00:00
parent 8f0db3e30d
commit 2e9ca4c0f5
1 changed files with 3 additions and 1 deletions

View File

@ -147,7 +147,9 @@ string Lang::get(const string &s, string language) {
string Lang::getScenarioString(const string &s) {
try{
return scenarioStrings.getString(s);
string result = scenarioStrings.getString(s);
replaceAll(result, "\\n", "\n");
return result;
}
catch(exception &ex) {
if(scenarioStrings.getpath() != "") {