Use REDFLR for missing flats
This commit is contained in:
parent
249cf5c8ad
commit
b88a37949e
|
@ -606,11 +606,18 @@ Ploadflat (levelflat_t *levelflat, const char *flatname)
|
||||||
{
|
{
|
||||||
if (( texturenum = R_CheckTextureNumForName(flatname) ) == -1)
|
if (( texturenum = R_CheckTextureNumForName(flatname) ) == -1)
|
||||||
{
|
{
|
||||||
/* we can handle REDWALL later */
|
// check for REDWALL
|
||||||
|
if (( texturenum = R_CheckTextureNumForName("REDWALL") ) != -1)
|
||||||
|
goto texturefound;
|
||||||
|
// check for REDFLR
|
||||||
|
else if (( flatnum = R_GetFlatNumForName("REDFLR") ) != LUMPERROR)
|
||||||
|
goto flatfound;
|
||||||
|
// nevermind
|
||||||
levelflat->type = LEVELFLAT_NONE;
|
levelflat->type = LEVELFLAT_NONE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
texturefound:
|
||||||
levelflat->type = LEVELFLAT_TEXTURE;
|
levelflat->type = LEVELFLAT_TEXTURE;
|
||||||
levelflat->u.texture. num = texturenum;
|
levelflat->u.texture. num = texturenum;
|
||||||
levelflat->u.texture.lastnum = texturenum;
|
levelflat->u.texture.lastnum = texturenum;
|
||||||
|
@ -620,6 +627,7 @@ Ploadflat (levelflat_t *levelflat, const char *flatname)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
flatfound:
|
||||||
/* This could be a flat, patch, or PNG. */
|
/* This could be a flat, patch, or PNG. */
|
||||||
if (R_CheckIfPatch(flatnum))
|
if (R_CheckIfPatch(flatnum))
|
||||||
levelflat->type = LEVELFLAT_PATCH;
|
levelflat->type = LEVELFLAT_PATCH;
|
||||||
|
|
Loading…
Reference in New Issue