From e52835520c099a0243e5a93648674e2da9e3472d Mon Sep 17 00:00:00 2001 From: Blixibon Date: Thu, 27 May 2021 13:16:55 -0500 Subject: [PATCH] Slightly adjusted hook callback code --- sp/src/vscript/vscript_squirrel.nut | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sp/src/vscript/vscript_squirrel.nut b/sp/src/vscript/vscript_squirrel.nut index cd05139f..85c895ac 100644 --- a/sp/src/vscript/vscript_squirrel.nut +++ b/sp/src/vscript/vscript_squirrel.nut @@ -204,10 +204,10 @@ Hooks <- local t = s_List[scope] if ( event in t ) { + vargv.insert(0,scope) foreach( context, callback in t[event] ) { - printf( "(%.4f) Calling hook '%s' of context '%s'\n", Time(), event, context ) - vargv.insert(0,scope) + //printf( "(%.4f) Calling hook '%s' of context '%s'\n", Time(), event, context ) local curReturn = callback.acall(vargv) if (firstReturn == null)