mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-03-03 15:31:11 +00:00
Fox's maskwall fix 2.0
git-svn-id: https://svn.eduke32.com/eduke32@6495 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
7fd86d09ad
commit
7033d83d26
1 changed files with 4 additions and 4 deletions
|
@ -2375,8 +2375,8 @@ skip: ;
|
||||||
|
|
||||||
int const ni = vsp[i].n;
|
int const ni = vsp[i].n;
|
||||||
|
|
||||||
if ((vsp[i].ctag == vsp[ni].ctag) && (vsp[i].ftag == vsp[ni].ftag) /*&&
|
if ((vsp[i].ctag == vsp[ni].ctag) && (vsp[i].ftag == vsp[ni].ftag) &&
|
||||||
((vsp[ni].cy[1] <= vsp[i].cy[1]) || (vsp[ni].fy[1] >= vsp[i].fy[1]))*/)
|
((vsp[i].cy[1] <= vsp[ni].cy[1]) || (vsp[i].fy[1] <= vsp[ni].fy[1])))
|
||||||
{
|
{
|
||||||
vsp[i].cy[1] = vsp[ni].cy[1];
|
vsp[i].cy[1] = vsp[ni].cy[1];
|
||||||
vsp[i].fy[1] = vsp[ni].fy[1];
|
vsp[i].fy[1] = vsp[ni].fy[1];
|
||||||
|
@ -4188,7 +4188,7 @@ void polymost_drawmaskwall(int32_t damaskwallcnt)
|
||||||
if (t0 >= 0)
|
if (t0 >= 0)
|
||||||
dp2[n2++] = dpxy[i];
|
dp2[n2++] = dpxy[i];
|
||||||
|
|
||||||
if ((t0 >= 0) != (t1 >= 0))
|
if ((t0 >= 0) != (t1 >= 0) && (t0 <= 0) != (t1 <= 0))
|
||||||
{
|
{
|
||||||
float const r = t0 / (t0 - t1);
|
float const r = t0 / (t0 - t1);
|
||||||
dp2[n2].x = (dpxy[j].x - dpxy[i].x) * r + dpxy[i].x;
|
dp2[n2].x = (dpxy[j].x - dpxy[i].x) * r + dpxy[i].x;
|
||||||
|
@ -4215,7 +4215,7 @@ void polymost_drawmaskwall(int32_t damaskwallcnt)
|
||||||
if (t0 >= 0)
|
if (t0 >= 0)
|
||||||
dpxy[n++] = dp2[i];
|
dpxy[n++] = dp2[i];
|
||||||
|
|
||||||
if ((t0 >= 0) != (t1 >= 0))
|
if ((t0 >= 0) != (t1 >= 0) && (t0 <= 0) != (t1 <= 0))
|
||||||
{
|
{
|
||||||
float const r = t0 / (t0 - t1);
|
float const r = t0 / (t0 - t1);
|
||||||
dpxy[n].x = (dp2[j].x - dp2[i].x) * r + dp2[i].x;
|
dpxy[n].x = (dp2[j].x - dp2[i].x) * r + dp2[i].x;
|
||||||
|
|
Loading…
Reference in a new issue