Skip to content

Commit

Permalink
fix: ghost list/leaderboard orange
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisAMJ committed Nov 1, 2024
1 parent 729a422 commit 3fa141b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Features/Demo/GhostLeaderboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static std::string formatTicks(int ticks) {
}

void GhostLeaderboardHud::Paint(int slot) {
if (slot != 0) return;
if (slot != 0 && !engine->IsOrange()) return;
if (!this->active) return;

unsigned nents = ghost_leaderboard_max_display.GetInt();
Expand Down
2 changes: 1 addition & 1 deletion src/Features/Demo/GhostLeaderboard.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct LeaderboardEntry {
class GhostLeaderboardHud : public Hud {
public:
GhostLeaderboardHud()
: Hud(HudType_InGame | HudType_Paused, false)
: Hud(HudType_InGame | HudType_Paused, true)
, lastLiveUpdate(-1)
{ }

Expand Down
4 changes: 2 additions & 2 deletions src/Features/Demo/NetworkGhostPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class PlayerListUi : public Hud {
bool active = false;

PlayerListUi()
: Hud(HudType_InGame | HudType_Menu | HudType_Paused | HudType_LoadingScreen, false)
: Hud(HudType_InGame | HudType_Menu | HudType_Paused | HudType_LoadingScreen, true)
{
}

Expand All @@ -154,7 +154,7 @@ class PlayerListUi : public Hud {
}

virtual void Paint(int slot) override {
if (slot != 0) return;
if (slot != 0 && !engine->IsOrange()) return;
if (!networkManager.isConnected) return;

std::set<std::string> players;
Expand Down

0 comments on commit 3fa141b

Please sign in to comment.