Changed the script procs defines in ScriptExtender.h to their real procedure names in SSL.

This commit is contained in:
NovaRain
2016-07-06 17:15:05 +08:00
parent 21b2d34432
commit 86163bf94c
3 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ static void _stdcall RunSpecificHookScript(sHookScript *hook) {
if (hook->callback != -1)
RunScriptProcByNum(hook->prog.ptr, hook->callback);
else
RunScriptProc(&hook->prog, start_proc);
RunScriptProc(&hook->prog, start);
}
static void _stdcall RunHookScript(DWORD hook) {
if (hooks[hook].size()) {
+1 -1
View File
@@ -1422,7 +1422,7 @@ void RunScriptProc(sScriptProgram* prog, DWORD procId) {
}
static void RunScript(sGlobalScript* script) {
script->count=0;
RunScriptProc(&script->prog, start_proc); // run "start"
RunScriptProc(&script->prog, start); // run "start"
}
/**
+3 -2
View File
@@ -92,6 +92,7 @@ extern DWORD isGlobalScriptLoading;
#define VAR_TYPE_STR2 (0x9001)
// script procs
#define start_proc (1)
#define start (1)
#define map_enter_p_proc (15)
#define map_update_proc (23)
#define destroy_p_proc (18)
#define map_update_p_proc (23)