Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
Fix spammed HTTP event for changing player info display state.
Browse files Browse the repository at this point in the history
  • Loading branch information
enzanki-ars committed May 12, 2020
1 parent d67ca1d commit 2a88e1c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions StreamGraphicsGSI-RL/StreamGraphicsGSI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,9 @@ void StreamGraphicsGSI::UpdateState(ServerWrapper wrapper) {

GameState.CurrentSpec.CurrentBoostAmount = boost;

if (!GameState.IsSpectatingPlayerPOV && !GameState.InReplayMode) {
if ((!GameState.IsSpectatingPlayerPOV && !GameState.InReplayMode) && !PLAYER_INFO_DISPLAY_STATE) {
ShowPlayerInfo();
PLAYER_INFO_DISPLAY_STATE = true;
}

GameState.IsSpectatingPlayerPOV = true;
Expand All @@ -334,8 +335,9 @@ void StreamGraphicsGSI::UpdateState(ServerWrapper wrapper) {

GameState.CurrentSpec.CurrentBoostAmount = 0;

if (GameState.IsSpectatingPlayerPOV || GameState.InReplayMode) {
if ((GameState.IsSpectatingPlayerPOV || GameState.InReplayMode) && PLAYER_INFO_DISPLAY_STATE) {
HidePlayerInfo();
PLAYER_INFO_DISPLAY_STATE = false;
}

GameState.IsSpectatingPlayerPOV = false;
Expand Down

0 comments on commit 2a88e1c

Please sign in to comment.