mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
HUD: fix GOAL not turning rainbow if point limit is less than 5
This commit is contained in:
parent
99a2a3fb74
commit
26b03a810c
1 changed files with 7 additions and 1 deletions
|
|
@ -2226,7 +2226,13 @@ struct PositionFacesInfo
|
|||
|
||||
player_t* top() const { return &players[rankplayer[0]]; }
|
||||
UINT32 top_score() const { return top()->roundscore; }
|
||||
bool near_goal() const { return g_pointlimit - 5 <= top_score(); }
|
||||
|
||||
bool near_goal() const
|
||||
{
|
||||
constexpr tic_t kThreshold = 5;
|
||||
return std::max(kThreshold, g_pointlimit) - kThreshold <= top_score();
|
||||
}
|
||||
|
||||
skincolornum_t vomit_color() const
|
||||
{
|
||||
if (!near_goal())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue