mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Adjust dot timing to look a bit nicer
* The cycle always ends on two dots. * The second dot gets drawn slightly sooner after a wrap.
This commit is contained in:
parent
196d310052
commit
8f9d9d783b
1 changed files with 4 additions and 6 deletions
10
src/p_user.c
10
src/p_user.c
|
|
@ -4608,12 +4608,9 @@ void P_PlayerThink(player_t *player)
|
|||
/* if we are in the grace period (including currently typing) */
|
||||
if (player->typing_timer + player->typing_duration > 0)
|
||||
{
|
||||
/*
|
||||
If one dot was already displayed, let the duration continue to
|
||||
display two dots for a bit, before actually resetting.
|
||||
*/
|
||||
/* always end the cycle on two dots */
|
||||
if (player->typing_timer == 0 &&
|
||||
(player->typing_duration < 16 || player->typing_duration > 39))
|
||||
(player->typing_duration < 16 || player->typing_duration == 40))
|
||||
{
|
||||
player->typing_duration = 0;
|
||||
}
|
||||
|
|
@ -4623,7 +4620,8 @@ void P_PlayerThink(player_t *player)
|
|||
}
|
||||
else
|
||||
{
|
||||
player->typing_duration = 0;
|
||||
/* spend slightly less time on the first dot after wrapping */
|
||||
player->typing_duration = 20;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue