mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 17:22:12 +00:00
Teeny optimization in renderer code??
This commit is contained in:
parent
aeef23e816
commit
d0a726c00b
1 changed files with 1 additions and 3 deletions
|
@ -965,9 +965,7 @@ void R_DrawSinglePlane(visplane_t *pl)
|
||||||
|
|
||||||
ang = pl->plangle>>ANGLETOFINESHIFT;
|
ang = pl->plangle>>ANGLETOFINESHIFT;
|
||||||
m.y = FIXED_TO_FLOAT(P_GetZAt(pl->slope, viewx + FINESINE(ang), viewy + FINECOSINE(ang))) - zeroheight;
|
m.y = FIXED_TO_FLOAT(P_GetZAt(pl->slope, viewx + FINESINE(ang), viewy + FINECOSINE(ang))) - zeroheight;
|
||||||
ang += ANGLE_90>>ANGLETOFINESHIFT;
|
n.y = FIXED_TO_FLOAT(P_GetZAt(pl->slope, viewx + FINECOSINE(ang), viewy - FINESINE(ang))) - zeroheight;
|
||||||
ang &= FINEMASK;
|
|
||||||
n.y = FIXED_TO_FLOAT(P_GetZAt(pl->slope, viewx + FINESINE(ang), viewy + FINECOSINE(ang))) - zeroheight;
|
|
||||||
|
|
||||||
M_CrossProduct3f(&ds_su, &p, &m);
|
M_CrossProduct3f(&ds_su, &p, &m);
|
||||||
M_CrossProduct3f(&ds_sv, &p, &n);
|
M_CrossProduct3f(&ds_sv, &p, &n);
|
||||||
|
|
Loading…
Reference in a new issue