Allow both Execute hooks in UDMF
This commit is contained in:
parent
16b4ea9b6f
commit
d69c999890
1 changed files with 6 additions and 3 deletions
|
|
@ -3459,10 +3459,13 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha
|
|||
|
||||
if (stringargs[0])
|
||||
{
|
||||
if (line && !udmf)
|
||||
if (line && mo && callsec)
|
||||
{
|
||||
// Allow running the old hook as well.
|
||||
LUA_HookLinedefExecute(line, mo, callsec);
|
||||
else
|
||||
LUA_HookSpecialExecute(activator, args, stringargs);
|
||||
}
|
||||
|
||||
LUA_HookSpecialExecute(activator, args, stringargs);
|
||||
}
|
||||
else
|
||||
CONS_Alert(CONS_WARNING, "Linedef %s is missing the hook name of the Lua function to call! (This should be given in stringarg0)\n", sizeu1(line-lines));
|
||||
|
|
|
|||
Loading…
Reference in a new issue