Particle fixes from q2dos and kmquake

Authors: maraakate <emoaddict15@gmail.com>
         Knightmare <knightmare66@yahoo.com>
This commit is contained in:
Denis Pauk 2018-03-11 13:03:06 +02:00
parent c97204e48d
commit 511b73baf9

View file

@ -61,10 +61,22 @@ D_ViewChanged (void)
d_pix_min = 1;
d_pix_max = (int)((float)r_refdef.vrect.width / (320.0 / 4.0) + 0.5);
d_pix_shift = 8 - (int)((float)r_refdef.vrect.width / 320.0 + 0.5);
if (d_pix_max < 1)
d_pix_max = 1;
if(r_newrefdef.width >= 800)
{
d_pix_shift = 16 - (int)((float)r_refdef.vrect.width / 320.0 + 0.5);
}
else if(r_newrefdef.width >= 640)
{
d_pix_shift = 12 - (int)((float)r_refdef.vrect.width / 320.0 + 0.5);
}
else
{
d_pix_shift = 8 - (int)((float)r_refdef.vrect.width / 320.0 + 0.5);
}
d_vrectx = r_refdef.vrect.x;
d_vrecty = r_refdef.vrect.y;
d_vrectright_particle = r_refdef.vrectright - d_pix_max;