mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix fourth digit blend mode being off by one.
see ebe38ff518
This commit is contained in:
parent
8a8126567b
commit
42f9443de1
2 changed files with 16 additions and 4 deletions
|
|
@ -3838,10 +3838,21 @@ static void P_SetBinaryFOFAlpha(line_t *line)
|
|||
if (sides[line->sidenum[0]].toptexture > 0)
|
||||
{
|
||||
line->args[1] = sides[line->sidenum[0]].toptexture;
|
||||
if (sides[line->sidenum[0]].toptexture >= 1001)
|
||||
|
||||
if (line->args[1] == 901) // additive special
|
||||
{
|
||||
line->args[1] = 0xff;
|
||||
line->args[2] = TMB_ADD;
|
||||
}
|
||||
else if (line->args[1] == 902) // subtractive special
|
||||
{
|
||||
line->args[1] = 0xff;
|
||||
line->args[2] = TMB_SUBTRACT;
|
||||
}
|
||||
else if (line->args[1] >= 1001) // fourth digit
|
||||
{
|
||||
line->args[2] = (sides[line->sidenum[0]].toptexture/1000);
|
||||
line->args[1] %= 1000;
|
||||
line->args[2] = (sides[line->sidenum[0]].toptexture/1000) + 1; // becomes an AST
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -5102,8 +5102,9 @@ static ffloor_t *P_AddFakeFloor(sector_t *sec, sector_t *sec2, line_t *master, I
|
|||
else th = th->next;
|
||||
}
|
||||
|
||||
fflr->alpha = max(0, min(0xff, alpha));
|
||||
if (fflr->alpha < 0xff || flags & FOF_SPLAT)
|
||||
//fflr->alpha = max(0, min(0xff, alpha));
|
||||
fflr->alpha = alpha;
|
||||
if (blendmode != TMB_TRANSLUCENT || fflr->alpha != 0xff || flags & FOF_SPLAT)
|
||||
{
|
||||
fflr->fofflags |= FOF_TRANSLUCENT;
|
||||
fflr->spawnflags = fflr->fofflags;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue