From 44bb871f7e978c4c5a2c533d11a3303c17ce22d6 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 14 Sep 2004 19:27:55 +0000 Subject: [PATCH] amx_debug is now set correctly. --- amxmodx/modules.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/amxmodx/modules.cpp b/amxmodx/modules.cpp index 115a3e6e..288c6023 100755 --- a/amxmodx/modules.cpp +++ b/amxmodx/modules.cpp @@ -148,13 +148,13 @@ int load_amxscript(AMX *amx, void **program, const char *filename, char error[64 return (amx->error = AMX_ERR_FORMAT); } -#ifdef JIT - if ( ((int)CVAR_GET_FLOAT("amx_debug") == 2 || (debug && (int)CVAR_GET_FLOAT("amx_debug"))) ) + if ( ((int)CVAR_GET_FLOAT("amx_debug") >= 2 || (debug && (int)CVAR_GET_FLOAT("amx_debug"))) ) { //automatic debug mode hdr->flags |= AMX_FLAG_LINEOPS; + hdr->flags |= AMX_FLAG_DEBUG; + printf("init flags:= %d\n", hdr->flags); } -#endif int err; memset(amx, 0, sizeof(*amx));