I_Error("Out of Mobj Freeslots while allocating \"%s\"\nLoad less addons to fix this.",word);
}
else
deh_warning("Freeslots: unknown enum class '%s' for '%s_%s'",type,type,word);
...
...
@@ -9215,7 +9227,7 @@ void DEH_Check(void)
staticinlineintlib_freeslot(lua_State*L)
{
intn=lua_gettop(L);
intr=0;// args returned
intr=0;// args returned
char*s,*type,*word;
while(n-->0)
...
...
@@ -9245,7 +9257,7 @@ static inline int lib_freeslot(lua_State *L)
lua_pushinteger(L,sfx);
r++;
}else
returnr;
I_Error("Out of Sfx Freeslots while allocating \"%s\"\nLoad less addons to fix this.",word);//Should never get here since S_AddSoundFx was changed to throw I_Error when it can't allocate
}
elseif(fastcmp(type,"SPR"))
{
...
...
@@ -9272,7 +9284,7 @@ static inline int lib_freeslot(lua_State *L)
break;
}
if(j>SPR_LASTFREESLOT)
returnr;
I_Error("Out of Sprite Freeslots while allocating \"%s\"\nLoad less addons to fix this.",word);
}
elseif(fastcmp(type,"S"))
{
...
...
@@ -9288,7 +9300,7 @@ static inline int lib_freeslot(lua_State *L)
break;
}
if(i==NUMSTATEFREESLOTS)
returnr;
I_Error("Out of State Freeslots while allocating \"%s\"\nLoad less addons to fix this.",word);
}
elseif(fastcmp(type,"MT"))
{
...
...
@@ -9304,7 +9316,7 @@ static inline int lib_freeslot(lua_State *L)
break;
}
if(i==NUMMOBJFREESLOTS)
returnr;
I_Error("Out of Mobj Freeslots while allocating \"%s\"\nLoad less addons to fix this.",word);