mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 22:40:50 +00:00
Particle fixes from q2dos and kmquake
Authors: maraakate <emoaddict15@gmail.com> Knightmare <knightmare66@yahoo.com>
This commit is contained in:
parent
c97204e48d
commit
511b73baf9
1 changed files with 13 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue