Skip to content

Commit

Permalink
overlay: fix FPS counter overlapping the healthbar in demos
Browse files Browse the repository at this point in the history
  • Loading branch information
walkawayy committed May 14, 2024
1 parent 06124bf commit d18853d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- `/heal`
- 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 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
2 changes: 1 addition & 1 deletion src/game/overlay.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ 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 d18853d

Please sign in to comment.