mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 13:51:43 +00:00
Simplify some code at toaster's suggestion.
This commit is contained in:
parent
a4042cab4f
commit
b84199faef
1 changed files with 1 additions and 10 deletions
11
src/r_segs.c
11
src/r_segs.c
|
@ -162,17 +162,8 @@ void R_RenderMaskedSegRange(drawseg_t *ds, INT32 x1, INT32 x2)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
transtable = R_GetLinedefTransTable(ldef);
|
transtable = R_GetLinedefTransTable(ldef);
|
||||||
if (ldef->blendmode == AST_ADD || ldef->blendmode == AST_SUBTRACT || ldef->blendmode == AST_REVERSESUBTRACT)
|
if ((blendmode = ldef->blendmode) && (transtable == NUMTRANSMAPS || blendmode == AST_MODULATE))
|
||||||
{
|
|
||||||
if (transtable == NUMTRANSMAPS)
|
|
||||||
transtable = 0;
|
transtable = 0;
|
||||||
blendmode = ldef->blendmode;
|
|
||||||
}
|
|
||||||
else if (ldef->blendmode == AST_MODULATE)
|
|
||||||
{
|
|
||||||
transtable = 0;
|
|
||||||
blendmode = AST_MODULATE;
|
|
||||||
}
|
|
||||||
if (transtable != NUMTRANSMAPS && (dc_transmap = R_GetBlendTable(blendmode, transtable)))
|
if (transtable != NUMTRANSMAPS && (dc_transmap = R_GetBlendTable(blendmode, transtable)))
|
||||||
{
|
{
|
||||||
colfunc = colfuncs[COLDRAWFUNC_FUZZY];
|
colfunc = colfuncs[COLDRAWFUNC_FUZZY];
|
||||||
|
|
Loading…
Reference in a new issue