Rename to more appropriate name

This commit is contained in:
Kawe Mazidjatari 2022-05-20 01:16:30 +02:00
parent ad90ef6813
commit 1fb89c35c8
3 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@
#include "squirrel/sqstdaux.h"
bool g_bSQAuxError = false;
bool g_bSQAuxBadIndex = false;
bool g_bSQAuxBadLogic = false;
SQInteger sqstd_aux_printerror(HSQUIRRELVM v)
{
g_bSQAuxError = true;
@ -21,7 +21,7 @@ SQInteger sqstd_aux_printerror(HSQUIRRELVM v)
SQInteger sqstd_aux_badlogic(HSQUIRRELVM v, __m128i* a2, __m128i* a3)
{
g_bSQAuxBadIndex = true;
g_bSQAuxBadLogic = true;
SQInteger results = v_sqstd_aux_badlogic(v, a2, a3);
return results;
}

View File

@ -1,6 +1,6 @@
#pragma once
extern bool g_bSQAuxError;
extern bool g_bSQAuxBadIndex;
extern bool g_bSQAuxBadLogic;
inline CMemory p_sqstd_aux_printerror;
inline auto v_sqstd_aux_printerror = p_sqstd_aux_printerror.RCast<SQInteger(*)(HSQUIRRELVM v)>();

View File

@ -104,12 +104,12 @@ SQRESULT SQVM_PrintFunc(HSQUIRRELVM v, SQChar* fmt, ...)
vmStrAnsi = SQVM_WARNING_ANSI_LOG_T[static_cast<SQInteger>(context)].c_str();
}
}
else if (g_bSQAuxBadIndex)
else if (g_bSQAuxBadLogic)
{
if (strstr(buf, "There was a problem processing game logic."))
{
bError = true;
g_bSQAuxBadIndex = false;
g_bSQAuxBadLogic = false;
vmStrAnsi = SQVM_ERROR_ANSI_LOG_T[static_cast<SQInteger>(context)].c_str();
}
else