Add clear console when starting gamemode setting.

Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com>
This commit is contained in:
sphrose
2021-07-12 16:07:52 +01:00
parent 504201aef2
commit 17a79daad8
7 changed files with 24 additions and 0 deletions
+6
View File
@@ -29,6 +29,7 @@
// Editor
#include "IEditorImpl.h"
#include "Controls/ConsoleSCB.h"
#include "CryEditDoc.h"
#include "Settings.h"
@@ -565,6 +566,11 @@ void CGameEngine::SwitchToInGame()
streamer->QueueRequest(flush);
wait.acquire();
}
if (gSettings.clearConsoleOnGameModeStart)
{
CConsoleSCB::GetCreatedInstance()->ClearText();
}
GetIEditor()->Notify(eNotify_OnBeginGameMode);