@@ -57,10 +57,12 @@ int vsnprintf(char *str, size_t n, const char *fmt, va_list ap);
// The crazy word-reading stuff uses these.
staticchar*FREE_STATES[NUMSTATEFREESLOTS];
staticchar*FREE_MOBJS[NUMMOBJFREESLOTS];
staticchar*FREE_SKINCOLORS[NUMCOLORFREESLOTS];
staticUINT8used_spr[(NUMSPRITEFREESLOTS/8)+1];// Bitwise flag for sprite freeslot in use! I would use ceil() here if I could, but it only saves 1 byte of memory anyway.
I_Error("You forgot to update the Dehacked powers list, you dolt!\n(%d powers defined, versus %s in the Dehacked list)\n",NUMPOWERS,sizeu1(dehpowers));
if(dehcolors!=MAXTRANSLATIONS)
I_Error("You forgot to update the Dehacked colors list, you dolt!\n(%d colors defined, versus %s in the Dehacked list)\n",MAXTRANSLATIONS,sizeu1(dehcolors));
if(dehcolors!=SKINCOLOR_FIRSTFREESLOT)
I_Error("You forgot to update the Dehacked colors list, you dolt!\n(%d colors defined, versus %s in the Dehacked list)\n",SKINCOLOR_FIRSTFREESLOT,sizeu1(dehcolors));
#endif
}
...
...
@@ -10456,6 +10572,22 @@ static inline int lib_freeslot(lua_State *L)
if(i==NUMMOBJFREESLOTS)
CONS_Alert(CONS_WARNING,"Ran out of free MobjType slots!\n");