mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@1115 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ed4c9d6e01
commit
1d98974693
2 changed files with 26 additions and 2 deletions
|
@ -4173,8 +4173,26 @@ void polymost_drawrooms()
|
|||
short hitsect, hitwall, hitsprite;
|
||||
int vx, vy, vz, hitx, hity, hitz;
|
||||
int cz, fz;
|
||||
double ratio = 1.0;
|
||||
|
||||
ox2 = (searchx-ghalfx)/1.2; oy2 = (searchy-ghoriz)/ 1.2; oz2 = ghalfx;
|
||||
if (glwidescreen == 1)
|
||||
ratio = 1.2f;
|
||||
else if (glprojectionhacks == 1)
|
||||
{
|
||||
if (gshang > 0)
|
||||
ratio += gshang*0.33f;
|
||||
if (gshang < 0)
|
||||
ratio += -gshang*0.33f;
|
||||
}
|
||||
else if (glprojectionhacks == 2)
|
||||
{
|
||||
if (gshang > 0.7f)
|
||||
ratio += 4.f*(gshang-0.7f);
|
||||
if (gshang < -0.7f)
|
||||
ratio += 4.f*(-gshang-0.7f);
|
||||
}
|
||||
|
||||
ox2 = (searchx-ghalfx)/ratio; oy2 = (searchy-ghoriz)/ ratio; oz2 = ghalfx;
|
||||
|
||||
//Tilt rotation
|
||||
ox = ox2*gctang + oy2*gstang;
|
||||
|
|
|
@ -4377,7 +4377,7 @@ void displayrooms(int snum,int smoothratio)
|
|||
short tang;
|
||||
int tiltcx,tiltcy,tiltcs=0; // JBF 20030807
|
||||
|
||||
if (pub > 0 || getrendermode() >= 3) // JBF 20040101: redraw background always
|
||||
if (pub > 0) // JBF 20040101: redraw background always
|
||||
{
|
||||
if (getrendermode() >= 3 || ud.screen_size > 8 || (ud.screen_size == 8 && ud.statusbarscale<100))
|
||||
drawbackground();
|
||||
|
@ -4419,6 +4419,9 @@ void displayrooms(int snum,int smoothratio)
|
|||
drawrooms(s->x,s->y,s->z-(4<<8),ud.cameraang,s->yvel,s->sectnum);
|
||||
animatesprites(s->x,s->y,ud.cameraang,smoothratio);
|
||||
drawmasks();
|
||||
|
||||
if (getrendermode() >= 3)
|
||||
drawbackground();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -4601,6 +4604,9 @@ void displayrooms(int snum,int smoothratio)
|
|||
animatesprites(ud.camerax,ud.cameray,ud.cameraang,smoothratio);
|
||||
drawmasks();
|
||||
|
||||
if (getrendermode() >= 3)
|
||||
drawbackground();
|
||||
|
||||
if (screencapt == 1)
|
||||
{
|
||||
setviewback();
|
||||
|
|
Loading…
Reference in a new issue