Skip to content

Commit

Permalink
overlay: fix FPS counter overlapping the healthbar in demos (LostArte…
Browse files Browse the repository at this point in the history
  • Loading branch information
walkawayy authored May 14, 2024
1 parent 82d6932 commit 06fbfab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- fixed config tool and installer missing icons (#1358, regression from 4.0)
- fixed looking forward too far causing an upside down camera frame (#1338)
- fixed the enemy bear behavior in demo mode (#1370, regression since 2.16)
- fixed the FPS counter overlapping the healthbar in demo mode (#1369)

## [4.1.2](https://github.com/LostArtefacts/TR1X/compare/4.1.1...4.1.2) - 2024-04-28
- fixed pictures display time (#1349, regression from 4.1)
Expand Down
3 changes: 2 additions & 1 deletion src/game/overlay.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,8 @@ void Overlay_DrawFPSInfo(void)
bool inv_health_showable = Phase_Get() == PHASE_INVENTORY
&& g_GameInfo.inv_showing_medpack
&& m_HealthBar.location == BL_TOP_LEFT;
bool game_bar_showable = Phase_Get() == PHASE_GAME
bool game_bar_showable =
(Phase_Get() == PHASE_GAME || Phase_Get() == PHASE_DEMO)
&& (m_HealthBar.location == BL_TOP_LEFT
|| m_AirBar.location == BL_TOP_LEFT
|| m_EnemyBar.location == BL_TOP_LEFT);
Expand Down

0 comments on commit 06fbfab

Please sign in to comment.