Skip to content

Commit e467f13

Browse files
committed
Restored CStaticFunctionDefinitions::GUIMoveToBack
Three lines got removed from this function while solving conflicts, so restored them back.
1 parent a45bf99 commit e467f13

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5323,8 +5323,14 @@ void CStaticFunctionDefinitions::GUIMoveToBack(CClientEntity& Entity)
53235323
{
53245324
CClientGUIElement& GUIElement = static_cast<CClientGUIElement&>(Entity);
53255325

5326+
bool bConsoleHadInputFocus = g_pCore->GetConsole()->IsInputActive();
5327+
53265328
// Move it to the back
53275329
GUIElement.GetCGUIElement()->MoveToBack();
5330+
5331+
// Restore input focus to the console if required
5332+
if (bConsoleHadInputFocus)
5333+
g_pCore->GetConsole()->ActivateInput();
53285334
}
53295335
}
53305336

0 commit comments

Comments
 (0)