diff --git a/cleo_plugins/DebugUtils/DebugUtils.cpp b/cleo_plugins/DebugUtils/DebugUtils.cpp index f7a06569..829076d6 100644 --- a/cleo_plugins/DebugUtils/DebugUtils.cpp +++ b/cleo_plugins/DebugUtils/DebugUtils.cpp @@ -30,7 +30,6 @@ class DebugUtils // limits for processing after which script is considered hanging static size_t configLimitCommand; - static size_t configLimitJump; // breakpoint continue keys static const int KeyFirst = VK_F5; @@ -51,7 +50,6 @@ class DebugUtils auto config = GetConfigFilename(); configLimitCommand = GetPrivateProfileInt("Limits", "Command", 100000, config.c_str()); - configLimitJump = GetPrivateProfileInt("Limits", "Jump", 20000, config.c_str()); // register opcodes CLEO_RegisterOpcode(0x00C3, Opcode_DebugOn); @@ -204,17 +202,6 @@ class DebugUtils return pScript->Suspend(); } - if (opcode == 0x0002 || opcode == 0x004D) // goto, goto_if_false - { - currScript.jumpCounter++; - - if (currScript.jumpCounter > configLimitJump) - { - SHOW_ERROR("Over %d,%03d jump commands executed in a single frame by script %s \nTo prevent the game from freezing, CLEO suspended this script.\n\nTo ignore this error, increase 'jump' property in %s.ini file and restart the game.", configLimitJump / 1000, configLimitJump % 1000, ScriptInfoStr(pScript).c_str(), TARGET_NAME); - return pScript->Suspend(); - } - } - return OR_NONE; } @@ -415,7 +402,6 @@ ScreenLog DebugUtils::screenLog = {}; std::deque DebugUtils::pausedScripts; ScriptLog DebugUtils::currScript = {}; size_t DebugUtils::configLimitCommand; -size_t DebugUtils::configLimitJump; bool DebugUtils::keysReleased = true; std::map DebugUtils::logFiles; diff --git a/cleo_plugins/DebugUtils/SA.DebugUtils.ini b/cleo_plugins/DebugUtils/SA.DebugUtils.ini index 8061bb71..01f7482f 100644 --- a/cleo_plugins/DebugUtils/SA.DebugUtils.ini +++ b/cleo_plugins/DebugUtils/SA.DebugUtils.ini @@ -25,5 +25,4 @@ ColorSystem = "DDDDDDFF" ; limits between 'wait' command in script after which it is considered hanging [Limits] -command = 100000 -jump = 20000 +command = 200000