Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff

This commit is contained in:
Alug committed 2024-01-06 01:15:05 +01:00
commit 82dbfb4379
3 files changed
+8 -5

No files matched your search

+4 -2
View File
@@ -1460,13 +1460,15 @@ void HWR_DrawMD2(gr_vissprite_t *spr)
HWD.pfnSetShader(4); // model shader
{
SINT8 flipfactor = flip ? -1 : 1;
float this_scale = FIXED_TO_FLOAT(interp.scale);
float xs = this_scale * FIXED_TO_FLOAT(interp.spritexscale);
float ys = this_scale * FIXED_TO_FLOAT(interp.spriteyscale);
float ox = xs * FIXED_TO_FLOAT(interp.spritexoffset);
float oy = ys * FIXED_TO_FLOAT(interp.spriteyoffset);
float ox = xs * flipfactor*FIXED_TO_FLOAT(interp.spritexoffset);
float oy = ys * flipfactor*FIXED_TO_FLOAT(interp.spriteyoffset);
// offset perpendicular to the camera angle
p.x -= ox * gr_viewsin;
+3 -2
View File
@@ -3245,6 +3245,7 @@ void K_RollMobjBySlopes(mobj_t* mo, boolean usedistance)
I_Assert(mo->subsector->sector != NULL);
angle_t an;
boolean flip = mo->eflags & MFE_VERTICALFLIP;
fixed_t m_dist = R_PointToDist(mo->x, mo->y);
fixed_t rolldist = cv_sloperolldist.value * mapobjectscale;
@@ -3269,7 +3270,7 @@ void K_RollMobjBySlopes(mobj_t* mo, boolean usedistance)
else
mo->pitch_sprite = FixedAngle(0);
mo->slopepitch = mo->pitch_sprite;
mo->slopepitch = flip ? InvAngle(mo->pitch_sprite) : mo->pitch_sprite;
// roll
tempangle = (R_PointToAngle2(0, 0, tempz, tempy));
@@ -3283,7 +3284,7 @@ void K_RollMobjBySlopes(mobj_t* mo, boolean usedistance)
else
mo->roll_sprite = FixedAngle(0);
mo->sloperoll = mo->roll_sprite;
mo->sloperoll = flip ? InvAngle(mo->roll_sprite) : mo->roll_sprite;
}
else if (P_IsObjectOnGround(mo))
{
+1 -1
View File
@@ -1451,7 +1451,7 @@ void I_FinishUpdate(void)
if (cv_ticrate.value && st_overlay)
SCR_DisplayTicRate();
if (cv_showping.value && netgame && consoleplayer != serverplayer)
if (cv_showping.value && netgame && consoleplayer != serverplayer && st_overlay)
SCR_DisplayLocalPing();
#ifdef HAVE_DISCORDRPC