mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Fix return value of Lua key hooks not being used
This commit is contained in:
parent
90763d42e1
commit
7d01bd38d8
1 changed files with 1 additions and 1 deletions
|
@ -594,7 +594,7 @@ int LUA_HookKey(INT32 keycode, int hook_type)
|
|||
if (prepare_hook(&hook, false, hook_type))
|
||||
{
|
||||
lua_pushinteger(gL, keycode);
|
||||
call_hooks(&hook, 1, 0, res_true);
|
||||
call_hooks(&hook, 1, 1, res_true);
|
||||
}
|
||||
return hook.status;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue