mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-26 21:57:57 +03:00
Slightly adjusted hook callback code
This commit is contained in:
parent
0d9a5349b0
commit
e52835520c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user