HUD items with V_SLIDEIN interpolate

This commit is contained in:
Sally Coolatta 2021-11-29 20:00:41 -05:00
parent bea5d9dce7
commit c6bf534f29
2 changed files with 10 additions and 1 deletions

View file

@ -761,9 +761,14 @@ void K_AdjustXYWithSnap(INT32 *x, INT32 *y, UINT32 options, INT32 dupx, INT32 du
if (lt_exitticker < length)
{
INT32 offset = screenwidth - ((lt_exitticker * screenwidth) / length);
boolean slidefromright = false;
const INT32 offsetAmount = (screenwidth * FRACUNIT) / length;
fixed_t offset = (screenwidth * FRACUNIT) - (lt_exitticker * offsetAmount);
offset += FixedMul(offsetAmount, renderdeltatics);
offset /= FRACUNIT;
if (r_splitscreen > 1)
{
if (stplyr == &players[displayplayers[1]] || stplyr == &players[displayplayers[3]])

View file

@ -1260,6 +1260,7 @@ void ST_Drawer(void)
if (rendermode != render_none) ST_doPaletteStuff();
{
#if 0
const tic_t length = TICRATE/2;
if (lt_exitticker)
@ -1270,6 +1271,9 @@ void ST_Drawer(void)
}
else
st_translucency = 0;
#else
st_translucency = cv_translucenthud.value;
#endif
}
// Check for a valid level title