mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 02:42:20 +00:00
Merge branch 'levelflat_name' into 'next'
Use levelflat->name instead of flatname See merge request STJr/SRB2!1024
This commit is contained in:
commit
17616967d3
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue