From 1fb89c35c8664f8814d3d4f21f792326786c0f03 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Fri, 20 May 2022 01:16:30 +0200 Subject: [PATCH] Rename to more appropriate name --- r5dev/squirrel/sqstdaux.cpp | 4 ++-- r5dev/squirrel/sqstdaux.h | 2 +- r5dev/squirrel/sqvm.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/r5dev/squirrel/sqstdaux.cpp b/r5dev/squirrel/sqstdaux.cpp index ded95ef9..af16e2df 100644 --- a/r5dev/squirrel/sqstdaux.cpp +++ b/r5dev/squirrel/sqstdaux.cpp @@ -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; } diff --git a/r5dev/squirrel/sqstdaux.h b/r5dev/squirrel/sqstdaux.h index 576461c7..8a702ad6 100644 --- a/r5dev/squirrel/sqstdaux.h +++ b/r5dev/squirrel/sqstdaux.h @@ -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(); diff --git a/r5dev/squirrel/sqvm.cpp b/r5dev/squirrel/sqvm.cpp index 81cb5c0a..f4f26e92 100644 --- a/r5dev/squirrel/sqvm.cpp +++ b/r5dev/squirrel/sqvm.cpp @@ -104,12 +104,12 @@ SQRESULT SQVM_PrintFunc(HSQUIRRELVM v, SQChar* fmt, ...) vmStrAnsi = SQVM_WARNING_ANSI_LOG_T[static_cast(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(context)].c_str(); } else