Escape number signs in cell/region names (bug #5047)

pull/541/head
Capostrophic 6 years ago
parent e0fb411fc8
commit 9a19af5b33

@ -92,6 +92,7 @@
Bug #5025: Data race in the ICO::setMaximumNumOfObjectsToCompilePerFrame() Bug #5025: Data race in the ICO::setMaximumNumOfObjectsToCompilePerFrame()
Bug #5028: Offered price caps are not trading-specific Bug #5028: Offered price caps are not trading-specific
Bug #5038: Enchanting success chance calculations are blatantly wrong Bug #5038: Enchanting success chance calculations are blatantly wrong
Bug #5047: # in cell names sets color
Feature #1774: Handle AvoidNode Feature #1774: Handle AvoidNode
Feature #2229: Improve pathfinding AI Feature #2229: Improve pathfinding AI
Feature #3025: Analogue gamepad movement controls Feature #3025: Analogue gamepad movement controls

@ -345,7 +345,7 @@ namespace MWClass
store.get<ESM::Region>().find(cell->mRegion); store.get<ESM::Region>().find(cell->mRegion);
//name as is, not a token //name as is, not a token
return region->mName; return MyGUI::TextIterator::toTagsString(region->mName);
} }
} }

@ -1184,6 +1184,7 @@ namespace MWGui
else if (tag.compare(0, tokenLength, tokenToFind) == 0) else if (tag.compare(0, tokenLength, tokenToFind) == 0)
{ {
_result = mTranslationDataStorage.translateCellName(tag.substr(tokenLength)); _result = mTranslationDataStorage.translateCellName(tag.substr(tokenLength));
_result = MyGUI::TextIterator::toTagsString(_result);
} }
else if (Gui::replaceTag(tag, _result)) else if (Gui::replaceTag(tag, _result))
{ {

Loading…
Cancel
Save