make intermissionthinker use LUA_HookVoid

comment out hookbool since unused
This commit is contained in:
Alug committed 2024-11-21 20:33:41 +01:00
1 parent 3db21bf778
commit a4080980ec
3 files changed
+3 -6

No files matched your search

-1
View File
@@ -99,7 +99,6 @@ int LUA_HookMobj(mobj_t *, int hook);
int LUA_Hook2Mobj(mobj_t *, mobj_t *, int hook);
void LUA_HookInt(INT32 integer, int hook);
//void LUA_HookBool(boolean value, int hook);
void LUA_HookBool(int hook);
int LUA_HookPlayer(player_t *, int hook);
int LUA_HookTiccmd(player_t *, ticcmd_t *, int hook);
+2 -3
View File
@@ -568,8 +568,7 @@ void LUA_HookInt(INT32 number, int hook_type)
}
}
//void LUA_HookBool(boolean value, int hook_type)
void LUA_HookBool(int hook_type)
/*void LUA_HookBool(boolean value, int hook_type)
{
Hook_State hook;
if (prepare_hook(&hook, 0, hook_type))
@@ -577,7 +576,7 @@ void LUA_HookBool(int hook_type)
//lua_pushboolean(gL, value);
call_hooks(&hook, 1, 0, res_none);
}
}
}*/
int LUA_HookPlayer(player_t *player, int hook_type)
{
+1 -2
View File
@@ -642,8 +642,7 @@ void Y_Ticker(void)
if (paused || P_AutoPause())
return;
LUA_HookBool(HOOK(IntermissionThinker));
LUA_HookVoid(HOOK(IntermissionThinker));
intertic++;