mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
amx_debug is now set correctly.
This commit is contained in:
parent
c1a138f370
commit
44bb871f7e
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user