Change 0.05 to 0.05f

This commit is contained in:
mazmazz 2018-12-18 16:59:59 -05:00
parent 67cd6dcdd2
commit 96cad09db6

View file

@ -4336,8 +4336,8 @@ static void HWR_SplitSprite(gr_vissprite_t *spr)
// if it has a dispoffset, push it a little towards the camera
if (spr->dispoffset) {
float co = -gr_viewcos*(0.05*spr->dispoffset);
float si = -gr_viewsin*(0.05*spr->dispoffset);
float co = -gr_viewcos*(0.05f*spr->dispoffset);
float si = -gr_viewsin*(0.05f*spr->dispoffset);
wallVerts[0].z = wallVerts[3].z = wallVerts[0].z+si;
wallVerts[1].z = wallVerts[2].z = wallVerts[1].z+si;
wallVerts[0].x = wallVerts[3].x = wallVerts[0].x+co;
@ -4647,8 +4647,8 @@ static void HWR_DrawSprite(gr_vissprite_t *spr)
// if it has a dispoffset, push it a little towards the camera
if (spr->dispoffset) {
float co = -gr_viewcos*(0.05*spr->dispoffset);
float si = -gr_viewsin*(0.05*spr->dispoffset);
float co = -gr_viewcos*(0.05f*spr->dispoffset);
float si = -gr_viewsin*(0.05f*spr->dispoffset);
wallVerts[0].z = wallVerts[3].z = wallVerts[0].z+si;
wallVerts[1].z = wallVerts[2].z = wallVerts[1].z+si;
wallVerts[0].x = wallVerts[3].x = wallVerts[0].x+co;