git-svn-id: https://svn.eduke32.com/eduke32@1115 1a8010ca-5511-0410-912e-c29ae57300e0

This commit is contained in:
terminx 2008-10-24 09:36:54 +00:00
parent ed4c9d6e01
commit 1d98974693
2 changed files with 26 additions and 2 deletions

View file

@ -4173,8 +4173,26 @@ void polymost_drawrooms()
short hitsect, hitwall, hitsprite; short hitsect, hitwall, hitsprite;
int vx, vy, vz, hitx, hity, hitz; int vx, vy, vz, hitx, hity, hitz;
int cz, fz; 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 //Tilt rotation
ox = ox2*gctang + oy2*gstang; ox = ox2*gctang + oy2*gstang;

View file

@ -4377,7 +4377,7 @@ void displayrooms(int snum,int smoothratio)
short tang; short tang;
int tiltcx,tiltcy,tiltcs=0; // JBF 20030807 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)) if (getrendermode() >= 3 || ud.screen_size > 8 || (ud.screen_size == 8 && ud.statusbarscale<100))
drawbackground(); 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); drawrooms(s->x,s->y,s->z-(4<<8),ud.cameraang,s->yvel,s->sectnum);
animatesprites(s->x,s->y,ud.cameraang,smoothratio); animatesprites(s->x,s->y,ud.cameraang,smoothratio);
drawmasks(); drawmasks();
if (getrendermode() >= 3)
drawbackground();
} }
else else
{ {
@ -4601,6 +4604,9 @@ void displayrooms(int snum,int smoothratio)
animatesprites(ud.camerax,ud.cameray,ud.cameraang,smoothratio); animatesprites(ud.camerax,ud.cameray,ud.cameraang,smoothratio);
drawmasks(); drawmasks();
if (getrendermode() >= 3)
drawbackground();
if (screencapt == 1) if (screencapt == 1)
{ {
setviewback(); setviewback();