Skip to content

Commit

Permalink
Merge pull request #226 from RiddleTime/dev
Browse files Browse the repository at this point in the history
fix visibility flag conditions
  • Loading branch information
RiddleTime authored Nov 21, 2024
2 parents df3b124 + 9f6043c commit fb3ae33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Race_Element.HUD/Overlay/Internal/CommonAbstractOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ public virtual bool DefaultShouldRender()
if (SimDataProvider.LocalCar.Engine.IsRunning)
condition = true;

if (GameWhenStarted.HasFlag(Game.RaceRoom | Game.AmericanTruckSimulator | Game.EuroTruckSimulator2 | Game.Automobilista2)) // TODO: map these conditions for other simulators
Game pauseConditionable = Game.RaceRoom | Game.AmericanTruckSimulator | Game.EuroTruckSimulator2 | Game.Automobilista2;
if (pauseConditionable.HasFlag(GameWhenStarted)) // TODO: map these conditions for other simulators
{
if (SimDataProvider.GameData.IsGamePaused)
condition = false;
Expand Down

0 comments on commit fb3ae33

Please sign in to comment.