Slightly adjusted hook callback code

This commit is contained in:
Blixibon 2021-05-27 13:16:55 -05:00
parent 0d9a5349b0
commit e52835520c

View File

@ -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)