Skip to content
Snippets Groups Projects
Commit 826e8e1a authored by Monster Iestyn's avatar Monster Iestyn
Browse files

Fixed goofups I missed back 3 months ago

parent d9ca8b45
No related branches found
No related tags found
1 merge request!502Pk3 folders are not textures!
...@@ -1157,13 +1157,13 @@ boolean W_IsLumpWad(lumpnum_t lumpnum) ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment