mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Use 'IsDedicated()' inline
This commit is contained in:
parent
840c6c869b
commit
aac74c11b2
@ -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;
|
||||
}
|
||||
|
@ -211,7 +211,7 @@ namespace VScriptCode
|
||||
//-----------------------------------------------------------------------------
|
||||
SQRESULT IsDedicated(HSQUIRRELVM v)
|
||||
{
|
||||
sq_pushbool(v, *s_bIsDedicated);
|
||||
sq_pushbool(v, ::IsDedicated());
|
||||
return SQ_OK;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user