SRB2 2.1.12 release

This commit is contained in:
Alam Ed Arias 2014-11-11 19:55:07 -05:00
parent 3fe4921a24
commit 404b5f666c
139 changed files with 2551 additions and 1506 deletions

View file

@ -873,7 +873,7 @@ boolean LUAh_BotAI(mobj_t *sonic, mobj_t *tails, ticcmd_t *cmd)
}
// Hook for linedef executors
boolean LUAh_LinedefExecute(line_t *line, mobj_t *mo)
boolean LUAh_LinedefExecute(line_t *line, mobj_t *mo, sector_t *sector)
{
if (!gL || !(hooksAvailable[hook_LinedefExecute/8] & (1<<(hook_LinedefExecute%8))))
return false;
@ -898,7 +898,8 @@ boolean LUAh_LinedefExecute(line_t *line, mobj_t *mo)
LUA_PushUserdata(gL, line, META_LINE);
LUA_PushUserdata(gL, mo, META_MOBJ);
LUA_Call(gL, 2); // pops hook function, line, mo
LUA_PushUserdata(gL, sector, META_SECTOR);
LUA_Call(gL, 3); // pops hook function, line, mo, sector
lua_pop(gL, -1);
lua_gc(gL, LUA_GCSTEP, 1);