mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-25 22:05:20 -04:00
substitute missing patches in textures with "TNT1A0"
Also, initialize composite background so that missing patches appear as black areas.
This commit is contained in:
parent
a1ae302ca7
commit
c078dfcbe7
@ -192,6 +192,9 @@ static void R_GenerateComposite(int texnum)
|
||||
// killough 4/9/98: marks to identify transparent regions in merged textures
|
||||
byte *marks = calloc(texture->width, texture->height), *source;
|
||||
|
||||
// [crispy] initialize composite background
|
||||
memset(block, 0, texturecompositesize[texnum]);
|
||||
|
||||
for (; --i >=0; patch++)
|
||||
{
|
||||
patch_t *realpatch = W_CacheLumpNum(patch->patch, PU_CACHE);
|
||||
@ -602,7 +605,7 @@ void R_InitTextures (void)
|
||||
SHORT(mpatch->patch), texture->name); // killough 4/17/98
|
||||
// [FG] treat missing patches as non-fatal, substitute dummy patch
|
||||
// ++errors;
|
||||
patch->patch = 0;
|
||||
patch->patch = (W_CheckNumForName)("TNT1A0", ns_sprites);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user