mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
if that function can't return NULL why should i do this?
This commit is contained in:
parent
45c629c174
commit
6860e4a85d
1 changed files with 2 additions and 12 deletions
|
|
@ -758,19 +758,9 @@ static UINT8 *R_GetPatchFlat(levelflat_t *levelflat, boolean leveltexture, boole
|
||||||
{
|
{
|
||||||
levelflat->flatpatch = R_PNGToFlat(levelflat, ds_source, W_LumpLength(levelflat->lumpnum));
|
levelflat->flatpatch = R_PNGToFlat(levelflat, ds_source, W_LumpLength(levelflat->lumpnum));
|
||||||
levelflat->topoffset = levelflat->leftoffset = 0;
|
levelflat->topoffset = levelflat->leftoffset = 0;
|
||||||
if (levelflat->flatpatch == NULL)
|
|
||||||
{
|
|
||||||
lumpnum_t redflr = W_CheckNumForName("REDFLR");
|
|
||||||
levelflat->flatpatch = (UINT8 *)W_CacheLumpNum(redflr, PU_CACHE);
|
|
||||||
R_CheckFlatLength(W_LumpLength(redflr));
|
|
||||||
R_CheckPowersOfTwo();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ds_flatwidth = levelflat->width;
|
ds_flatwidth = levelflat->width;
|
||||||
ds_flatheight = levelflat->height;
|
ds_flatheight = levelflat->height;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue