mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 21:45:32 +00:00
Do not show any book text after last <BR> tag.
This commit is contained in:
parent
926ddcd47e
commit
66a46ff03c
2 changed files with 9 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
Bug #3997: Almalexia doesn't pace
|
||||
Bug #4036: Weird behaviour of AI packages if package target has non-unique ID
|
||||
Bug #4047: OpenMW not reporting its version number in MacOS; OpenMW-CS not doing it fully
|
||||
Bug #4215: OpenMW shows book text after last <BR> tag
|
||||
Bug #4221: Characters get stuck in V-shaped terrain
|
||||
Bug #4251: Stationary NPCs do not return to their position after combat
|
||||
Bug #4293: Faction members are not aware of faction ownerships in barter
|
||||
|
|
|
@ -31,6 +31,14 @@ namespace MWGui
|
|||
|
||||
boost::algorithm::replace_all(mText, "\r", "");
|
||||
|
||||
// vanilla game does not show any text after last <BR> tag.
|
||||
const std::string lowerText = Misc::StringUtils::lowerCase(mText);
|
||||
int index = lowerText.rfind("<br>");
|
||||
if (index == -1)
|
||||
mText = "";
|
||||
else
|
||||
mText = mText.substr(0, index+4);
|
||||
|
||||
registerTag("br", Event_BrTag);
|
||||
registerTag("p", Event_PTag);
|
||||
registerTag("img", Event_ImgTag);
|
||||
|
|
Loading…
Reference in a new issue