mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
In polymost_dorotatesprite, don't set [xy]dimen to [xy]dim temporarily.
This fixes stuff like the HUD chaingun with widescreen and small "screen sizes" (in-game viewport). It also makes rotatesprite behave more like classic overall. I have no idea why it was there in the first place. git-svn-id: https://svn.eduke32.com/eduke32@2918 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
6253113476
commit
aadfd49435
1 changed files with 1 additions and 5 deletions
|
@ -5353,7 +5353,7 @@ void polymost_dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16
|
|||
static int32_t onumframes = 0;
|
||||
|
||||
int32_t n, nn, xoff, yoff, xsiz, ysiz, method;
|
||||
int32_t ogpicnum, ogshade, ogpal, ofoffset, oxdimen, oydimen, oldviewingrange;
|
||||
int32_t ogpicnum, ogshade, ogpal, ofoffset, oldviewingrange;
|
||||
double ogxyaspect;
|
||||
double ogchang, ogshang, ogctang, ogstang, oghalfx, oghoriz, fx, fy, x1, y1, z1, x2, y2;
|
||||
double ogrhalfxdown10, ogrhalfxdown10x;
|
||||
|
@ -5573,8 +5573,6 @@ void polymost_dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16
|
|||
ogrhalfxdown10x = grhalfxdown10x; grhalfxdown10x = grhalfxdown10;
|
||||
oghoriz = ghoriz; ghoriz = (double)(ydim>>1);
|
||||
ofoffset = frameoffset; frameoffset = frameplace;
|
||||
oxdimen = xdimen; xdimen = xdim;
|
||||
oydimen = ydimen; ydimen = ydim;
|
||||
ogchang = gchang; gchang = 1.0;
|
||||
ogshang = gshang; gshang = 0.0;
|
||||
ogctang = gctang; gctang = 1.0;
|
||||
|
@ -5729,8 +5727,6 @@ void polymost_dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16
|
|||
grhalfxdown10x = ogrhalfxdown10x;
|
||||
ghoriz = oghoriz;
|
||||
frameoffset = ofoffset;
|
||||
xdimen = oxdimen;
|
||||
ydimen = oydimen;
|
||||
gchang = ogchang;
|
||||
gshang = ogshang;
|
||||
gctang = ogctang;
|
||||
|
|
Loading…
Reference in a new issue