Fix short sprite names triggering an error

This commit is contained in:
LJ Sonic 2024-04-03 23:24:54 +02:00
parent 245a82112f
commit 22106ef8b1

View file

@ -431,7 +431,7 @@ boolean R_AddSingleSpriteDef(const char *sprname, spritedef_t *spritedef, UINT16
for (l = startlump; l < endlump; l++) for (l = startlump; l < endlump; l++)
{ {
if (W_IsLumpFolder(wadnum, l)) if (longname && W_IsLumpFolder(wadnum, l))
I_Error("R_AddSingleSpriteDef: all frame lumps for a sprite should be contained inside a single folder\n"); I_Error("R_AddSingleSpriteDef: all frame lumps for a sprite should be contained inside a single folder\n");
// For long sprites, the startlump-endlump range only includes // For long sprites, the startlump-endlump range only includes