Use 'IsDedicated()' inline

This commit is contained in:
Kawe Mazidjatari 2023-06-01 22:55:36 +02:00
parent 840c6c869b
commit aac74c11b2
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
//-----------------------------------------------------------------------------
void HEbisuSDK_Init()
{
if (*s_bIsDedicated)
if (IsDedicated())
{
*g_EbisuSDKInit = true; // <- 1st EbisuSDK
*g_EbisuProfileInit = true; // <- 2nd EbisuSDK
@ -22,7 +22,7 @@ void HEbisuSDK_Init()
//-----------------------------------------------------------------------------
bool IsOriginInitialized()
{
if (*s_bIsDedicated)
if (IsDedicated())
{
return true;
}

View File

@ -211,7 +211,7 @@ namespace VScriptCode
//-----------------------------------------------------------------------------
SQRESULT IsDedicated(HSQUIRRELVM v)
{
sq_pushbool(v, *s_bIsDedicated);
sq_pushbool(v, ::IsDedicated());
return SQ_OK;
}
}