diff --git a/src/lua_hooklib.c b/src/lua_hooklib.c index 8d5959bf77966e4ad150510ad7edc71c3edb11e7..b3ad0db311797202454d3507362fa8d32d50d7ee 100644 --- a/src/lua_hooklib.c +++ b/src/lua_hooklib.c @@ -17,6 +17,7 @@ #include "r_skins.h" #include "b_bot.h" #include "z_zone.h" +#include "y_inter.h" #include "lua_script.h" #include "lua_libs.h" @@ -1068,6 +1069,7 @@ int LUA_HookIntermissionThinker(boolean pstagefailed, INT32 intertic, INT32 tall lua_pushinteger(gL, intertic); lua_pushinteger(gL, tallydonetic); lua_pushinteger(gL, endtic); + lua_pushinteger(gL, intertype); call_hooks(&hook, 1, res_force); } return hook.status; diff --git a/src/lua_hudlib.c b/src/lua_hudlib.c index 07f9d1f75a7f67607398e57bc1d49ae8e16f15b7..9a0db2c677cc24c04fb5567186fe81448325cbbd 100644 --- a/src/lua_hudlib.c +++ b/src/lua_hudlib.c @@ -1515,6 +1515,6 @@ void LUA_SetHudHook(int hook, huddrawlist_h list) lua_pushinteger(gL, interlasttic); lua_pushinteger(gL, interlasttallyendtic); lua_pushinteger(gL, interlastendtic); - + lua_pushinteger(gL, intertype); } }