Merge branch 'levelflat_name' into 'next'

Use levelflat->name instead of flatname

See merge request STJr/SRB2!1024
This commit is contained in:
LJ Sonic 2020-07-04 08:46:04 -04:00
commit 17616967d3
1 changed files with 2 additions and 2 deletions

View File

@ -575,9 +575,9 @@ Ploadflat (levelflat_t *levelflat, const char *flatname, boolean resize)
strupr(levelflat->name);
/* If we can't find a flat, try looking for a texture! */
if (( flatnum = R_GetFlatNumForName(flatname) ) == LUMPERROR)
if (( flatnum = R_GetFlatNumForName(levelflat->name) ) == LUMPERROR)
{
if (( texturenum = R_CheckTextureNumForName(flatname) ) == -1)
if (( texturenum = R_CheckTextureNumForName(levelflat->name) ) == -1)
{
// check for REDWALL
if (( texturenum = R_CheckTextureNumForName("REDWALL") ) != -1)