remove !defined(RESOURCE_COMPILER) since is not defined anywhere (resource compiler was removed)

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-07-29 15:53:16 -07:00
parent b86349c3bf
commit 95c6fd83ea
4 changed files with 2 additions and 19 deletions
-2
View File
@@ -240,13 +240,11 @@ void CryLowLatencySleep(unsigned int dwMilliseconds)
int CryMessageBox([[maybe_unused]] const char* lpText, [[maybe_unused]] const char* lpCaption, [[maybe_unused]] unsigned int uType)
{
#ifdef WIN32
#if !defined(RESOURCE_COMPILER)
ICVar* const pCVar = gEnv && gEnv->pConsole ? gEnv->pConsole->GetCVar("sys_no_crash_dialog") : NULL;
if ((pCVar && pCVar->GetIVal() != 0) || (gEnv && gEnv->bNoAssertDialog))
{
return 0;
}
#endif
return MessageBox(NULL, lpText, lpCaption, uType);
#else
return 0;