Fixed goofups I missed back 3 months ago

This commit is contained in:
Monster Iestyn 2019-06-23 17:07:20 +01:00
parent d9ca8b45d3
commit 826e8e1aaf
1 changed files with 3 additions and 3 deletions

View File

@ -1157,13 +1157,13 @@ boolean W_IsLumpWad(lumpnum_t lumpnum)
// W_IsLumpFolder // W_IsLumpFolder
// Is the lump a folder? (in a PK3 obviously) // Is the lump a folder? (in a PK3 obviously)
// //
boolean W_IsLumpFolder(UINT16 wad, UINT16 lump); boolean W_IsLumpFolder(UINT16 wad, UINT16 lump)
{ {
if (wadfiles[wad]->type == RET_PK3) if (wadfiles[wad]->type == RET_PK3)
{ {
const char *name = wadfiles[wad]->lumpinfo[lump]->name2; const char *name = wadfiles[wad]->lumpinfo[lump].name2;
return (name[strlen(name)-1] == '/') // folders end in '/' return (name[strlen(name)-1] == '/'); // folders end in '/'
} }
return false; // non-PK3s don't have folders return false; // non-PK3s don't have folders