Sprite formats are now completely supported (PNGs work great too)!

The sprite loader code has been prettied up and rennovated quite a bit.

*NOTE: Fatbag, TSO sometimes has palette (PALT) resources that are not the same
as those described at simtec. Since you want to do the real figuring out, well,
have fun :)
This commit is contained in:
thnor 2012-04-05 00:50:46 -05:00
parent 6c85920535
commit 2a87e619ae
3 changed files with 240 additions and 189 deletions

View file

@ -165,7 +165,7 @@ IFFChunk *iff_find_first_chunk(IFFFile *IFFFileInfo, const char *type, uint16_t
currentNode = currentNode->NextChunk;
}
while (currentNode != IFFFileInfo->LastChunk);
while (currentNode != IFFFileInfo->LastChunk && currentNode != NULL);
return NULL;
}