mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 12:21:19 +00:00
Make the Phantom Ruby icon float at the same speed regardless of FPS cap.
This commit is contained in:
parent
51998ed105
commit
9aeacf8887
1 changed files with 3 additions and 2 deletions
|
@ -165,6 +165,7 @@ INT16 startmap; // Mario, NiGHTS, or just a plain old normal game?
|
|||
|
||||
static INT16 itemOn = 1; // menu item skull is on, Hack by Tails 09-18-2002
|
||||
static INT16 skullAnimCounter = 10; // skull animation counter
|
||||
static angle_t rubyfloattime = 0;
|
||||
|
||||
static UINT8 setupcontrolplayer;
|
||||
static INT32 (*setupcontrols)[2]; // pointer to the gamecontrols of the player being edited
|
||||
|
@ -3405,6 +3406,8 @@ void M_Ticker(void)
|
|||
if (--skullAnimCounter <= 0)
|
||||
skullAnimCounter = 8;
|
||||
|
||||
rubyfloattime += (ANGLE_MAX/NEWTICRATE);
|
||||
|
||||
if (currentMenu == &PlaybackMenuDef)
|
||||
{
|
||||
if (playback_enterheld > 0)
|
||||
|
@ -5517,10 +5520,8 @@ static void DrawReplayHutReplayInfo(void)
|
|||
V_DrawSmallScaledPatch(x+(w>>1), y, V_SNAPTOTOP|V_FLIP, patch);
|
||||
|
||||
{
|
||||
static angle_t rubyfloattime = 0;
|
||||
const fixed_t rubyheight = FINESINE(rubyfloattime>>ANGLETOFINESHIFT);
|
||||
V_DrawFixedPatch((x+(w>>2))<<FRACBITS, ((y+(h>>2))<<FRACBITS) - (rubyheight<<1), FRACUNIT, V_SNAPTOTOP, W_CachePatchName("RUBYICON", PU_CACHE), NULL);
|
||||
rubyfloattime += (ANGLE_MAX/NEWTICRATE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue