mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 04:29:34 -04:00
Ignore sprite lumps smaller than 8 bytes (#128)
* ignore sprite lumps smaller than 8 bytes * remove unnecessary check
This commit is contained in:
parent
b5c63e620a
commit
1eea0b91b9
@ -266,8 +266,15 @@ static void W_CoalesceMarkedResource(const char *start_marker,
|
||||
else
|
||||
if (is_marked) // if we are marking lumps,
|
||||
{ // move lump to marked list
|
||||
marked[num_marked] = *lump;
|
||||
marked[num_marked++].namespace = namespace; // killough 4/17/98
|
||||
// sf 26/10/99:
|
||||
// ignore sprite lumps smaller than 8 bytes (the smallest possible)
|
||||
// in size -- this was used by some dmadds wads
|
||||
// as an 'empty' graphics resource
|
||||
if(namespace != ns_sprites || lump->size > 8)
|
||||
{
|
||||
marked[num_marked] = *lump;
|
||||
marked[num_marked++].namespace = namespace; // killough 4/17/98
|
||||
}
|
||||
}
|
||||
else
|
||||
lumpinfo[num_unmarked++] = *lump; // else move down THIS list
|
||||
|
Loading…
x
Reference in New Issue
Block a user