mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-26 22:31:10 +00:00
Fix a crash in R_CalculateSlopeVectors called from R_RenderFloorSplat
This commit is contained in:
parent
e63efdac13
commit
b4294220e5
1 changed files with 3 additions and 0 deletions
|
@ -228,6 +228,9 @@ void R_RenderFloorSplat(floorsplat_t *pSplat, vector2_t *verts, vissprite_t *vis
|
|||
// Lactozilla: I don't know what I'm doing
|
||||
if (pSplat->tilted)
|
||||
{
|
||||
ds_sup = &ds_su[0];
|
||||
ds_svp = &ds_sv[0];
|
||||
ds_szp = &ds_sz[0];
|
||||
R_CalculateSlopeVectors(&pSplat->slope, viewx, viewy, viewz, pSplat->xscale, pSplat->yscale, -pSplat->verts[0].x, pSplat->verts[0].y, viewangle, pSplat->angle, 1.0f);
|
||||
spanfunctype = SPANDRAWFUNC_TILTEDSPRITE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue