mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 03:35:27 +00:00
Closes #1077: Replace tags before trying to get the message length
This commit is contained in:
parent
aa855e9524
commit
546b0cee76
@ -63,7 +63,8 @@ namespace MWGui
|
|||||||
{
|
{
|
||||||
MessageBox *box = new MessageBox(*this, message);
|
MessageBox *box = new MessageBox(*this, message);
|
||||||
box->mCurrentTime = 0;
|
box->mCurrentTime = 0;
|
||||||
box->mMaxTime = message.length()*mMessageBoxSpeed;
|
std::string realMessage = MyGUI::LanguageManager::getInstance().replaceTags(message);
|
||||||
|
box->mMaxTime = realMessage.length()*mMessageBoxSpeed;
|
||||||
|
|
||||||
if(stat)
|
if(stat)
|
||||||
mStaticMessageBox = box;
|
mStaticMessageBox = box;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user