mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
HUD items with V_SLIDEIN interpolate
This commit is contained in:
parent
bea5d9dce7
commit
c6bf534f29
2 changed files with 10 additions and 1 deletions
|
|
@ -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]])
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue