mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 18:32:36 +00:00
remove empty/redundant lines
This commit is contained in:
parent
eadad7a4b3
commit
6e43206d69
@ -93,19 +93,10 @@ namespace MWGui
|
||||
|
||||
void MessageBoxManager::createMessageBox (const std::string& message, bool stat)
|
||||
{
|
||||
if (message == "#{sNotifyMessage59}")
|
||||
for (MessageBox* messageBox : mMessageBoxes)
|
||||
if (messageBox->mIsEncumberedMessage)
|
||||
{
|
||||
messageBox->mCurrentTime = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
MessageBox *box = new MessageBox(*this, message);
|
||||
box->mCurrentTime = 0;
|
||||
std::string realMessage = MyGUI::LanguageManager::getInstance().replaceTags(message);
|
||||
box->mMaxTime = realMessage.length()*mMessageBoxSpeed;
|
||||
box->mIsEncumberedMessage = (message == "#{sNotifyMessage59}");
|
||||
|
||||
if(stat)
|
||||
mStaticMessageBox = box;
|
||||
@ -154,7 +145,6 @@ namespace MWGui
|
||||
return mInterMessageBoxe != nullptr;
|
||||
}
|
||||
|
||||
|
||||
bool MessageBoxManager::removeMessageBox (MessageBox *msgbox)
|
||||
{
|
||||
std::vector<MessageBox*>::iterator it;
|
||||
@ -175,7 +165,6 @@ namespace MWGui
|
||||
return mMessageBoxes;
|
||||
}
|
||||
|
||||
|
||||
int MessageBoxManager::readPressedButton (bool reset)
|
||||
{
|
||||
int pressed = mLastButtonPressed;
|
||||
|
@ -72,7 +72,6 @@ namespace MWGui
|
||||
|
||||
float mCurrentTime;
|
||||
float mMaxTime;
|
||||
bool mIsEncumberedMessage;
|
||||
|
||||
protected:
|
||||
MessageBoxManager& mMessageBoxManager;
|
||||
|
Loading…
x
Reference in New Issue
Block a user