// TODO: 2.3: Use the below NOSPAWNNULL define instead. P_SpawnMobj used to say "if MT_NULL, use MT_RAY instead", so the above define maintains Lua script compatibility until v2.3
/*#define NOSPAWNNULL if (type <= MT_NULL || type >= NUMMOBJTYPES)\
return luaL_error(L, "mobj type %d out of range (1 - %d)", type, NUMMOBJTYPES-1);*/
booleanluaL_checkboolean(lua_State*L,intnarg){
luaL_checktype(L,narg,LUA_TBOOLEAN);
returnlua_toboolean(L,narg);
...
...
@@ -625,8 +640,7 @@ static int lib_pSpawnMobj(lua_State *L)
mobjtype_ttype=luaL_checkinteger(L,4);
NOHUD
INLEVEL
if(type>=NUMMOBJTYPES)
returnluaL_error(L,"mobj type %d out of range (0 - %d)",type,NUMMOBJTYPES-1);