From 2e9ca4c0f55e33f7bf899a93c9ca7af8b611a84b Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 16 Sep 2011 03:17:49 +0000 Subject: [PATCH] - bugfix to support \n in scenario and tutorial lng files --- source/glest_game/global/lang.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/glest_game/global/lang.cpp b/source/glest_game/global/lang.cpp index 93292445..88980819 100644 --- a/source/glest_game/global/lang.cpp +++ b/source/glest_game/global/lang.cpp @@ -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() != "") {