Readd flats support (i think?)
This commit is contained in:
parent
60d0102d7e
commit
ac91ea6827
4 changed files with 10 additions and 10 deletions
|
|
@ -579,7 +579,14 @@ or NULL if we want to allocate it now.
|
|||
static INT32
|
||||
Ploadflat (levelflat_t *levelflat, const char *flatname, boolean resize)
|
||||
{
|
||||
#ifndef NO_PNG_LUMPS
|
||||
UINT8 buffer[8];
|
||||
#endif
|
||||
|
||||
lumpnum_t flatnum;
|
||||
int texturenum;
|
||||
UINT8 *flatpatch;
|
||||
size_t lumplength;
|
||||
size_t i;
|
||||
|
||||
// Scan through the already found flats, return if it matches.
|
||||
|
|
|
|||
|
|
@ -218,14 +218,6 @@ void P_InitPicAnims(void)
|
|||
lastanim->basepic = R_TextureNumForName(animdefs[i].startname);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (animdefs[i].istexture == 2)
|
||||
{
|
||||
CONS_Alert(CONS_WARNING, "ANIMDEFS flats are disabled; flat support in general will be removed soon! (%s, %s)\n", animdefs[i].startname, animdefs[i].endname);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
#if 0
|
||||
{
|
||||
if ((W_CheckNumForName(animdefs[i].startname)) == LUMPERROR)
|
||||
continue;
|
||||
|
|
@ -233,7 +225,6 @@ void P_InitPicAnims(void)
|
|||
lastanim->picnum = R_GetFlatNumForName(animdefs[i].endname);
|
||||
lastanim->basepic = R_GetFlatNumForName(animdefs[i].startname);
|
||||
}
|
||||
#endif
|
||||
|
||||
lastanim->istexture = animdefs[i].istexture;
|
||||
lastanim->numpics = lastanim->picnum - lastanim->basepic + 1;
|
||||
|
|
|
|||
|
|
@ -1712,7 +1712,7 @@ INT32 R_TextureNumForName(const char *name)
|
|||
static INT32 redwall = -2;
|
||||
CONS_Debug(DBG_SETUP, "WARNING: R_TextureNumForName: %.8s not found\n", name);
|
||||
if (redwall == -2)
|
||||
redwall = R_CheckTextureNumForName("REDWALL");
|
||||
redwall = R_CheckTextureNumForName(MISSING_TEXTURE);
|
||||
if (redwall != -1)
|
||||
return redwall;
|
||||
return 1;
|
||||
|
|
|
|||
|
|
@ -23,6 +23,8 @@
|
|||
#pragma interface
|
||||
#endif
|
||||
|
||||
#define MISSING_TEXTURE "AASMELLY" // Replacement for invalid textures
|
||||
|
||||
// A single patch from a texture definition,
|
||||
// basically a rectangular area within
|
||||
// the texture rectangle.
|
||||
|
|
|
|||
Loading…
Reference in a new issue