mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 20:11:12 +00:00
Fix a crash
This commit is contained in:
parent
2ae5c6d9fc
commit
e1b188caf3
1 changed files with 2 additions and 2 deletions
|
@ -1045,8 +1045,6 @@ void R_RenderThickSideRange(drawseg_t *ds, INT32 x1, INT32 x2, ffloor_t *pfloor)
|
||||||
|
|
||||||
if (pfloor->fofflags & FOF_TRANSLUCENT)
|
if (pfloor->fofflags & FOF_TRANSLUCENT)
|
||||||
{
|
{
|
||||||
fuzzy = true;
|
|
||||||
|
|
||||||
// Hacked up support for alpha value in software mode Tails 09-24-2002
|
// Hacked up support for alpha value in software mode Tails 09-24-2002
|
||||||
// ...unhacked by toaster 04-01-2021, re-hacked a little by sphere 19-11-2021
|
// ...unhacked by toaster 04-01-2021, re-hacked a little by sphere 19-11-2021
|
||||||
blendlevel = (10*((256+12) - pfloor->alpha))/255;
|
blendlevel = (10*((256+12) - pfloor->alpha))/255;
|
||||||
|
@ -1065,6 +1063,8 @@ void R_RenderThickSideRange(drawseg_t *ds, INT32 x1, INT32 x2, ffloor_t *pfloor)
|
||||||
else if (blendlevel > 0)
|
else if (blendlevel > 0)
|
||||||
dc_transmap = R_GetTranslucencyTable(blendlevel);
|
dc_transmap = R_GetTranslucencyTable(blendlevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fuzzy = dc_transmap != NULL;
|
||||||
}
|
}
|
||||||
else if (pfloor->fofflags & FOF_FOG)
|
else if (pfloor->fofflags & FOF_FOG)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue