use R_GetFlat here
does the exact same thing
This commit is contained in:
1 parent
91a4646f19
commit
dac7026739
1 file changed
+2
-2
+2
-2
@@ -678,7 +678,7 @@ INT32 P_AddLevelFlat(const char *flatname, levelflat_t *levelflat)
|
||||
// check if our flat contains cyan pixels
|
||||
// not sure if this is the best way to do it but it works
|
||||
{
|
||||
const UINT8 *flat = (UINT8 *)W_CacheLumpNum(levelflat->lumpnum, PU_LEVEL);
|
||||
const UINT8 *flat = R_GetFlat(levelflat->lumpnum);
|
||||
size_t size = W_LumpLength(levelflat->lumpnum);
|
||||
for (size_t steppy = 0; steppy < size; steppy++)
|
||||
{
|
||||
@@ -738,7 +738,7 @@ INT32 P_AddLevelFlatRuntime(const char *flatname)
|
||||
// check if our flat contains cyan pixels
|
||||
// not sure if this is the best way to do it but it works
|
||||
{
|
||||
const UINT8 *flat = (UINT8 *)W_CacheLumpNum(levelflat->lumpnum, PU_LEVEL);
|
||||
const UINT8 *flat = R_GetFlat(levelflat->lumpnum);
|
||||
size_t size = W_LumpLength(levelflat->lumpnum);
|
||||
for (size_t steppy = 0; steppy < size; steppy++)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user