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

Commit 2a88e1c

Browse files
committed
Fix spammed HTTP event for changing player info display state.
1 parent d67ca1d commit 2a88e1c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

StreamGraphicsGSI-RL/StreamGraphicsGSI.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,9 @@ void StreamGraphicsGSI::UpdateState(ServerWrapper wrapper) {
308308

309309
GameState.CurrentSpec.CurrentBoostAmount = boost;
310310

311-
if (!GameState.IsSpectatingPlayerPOV && !GameState.InReplayMode) {
311+
if ((!GameState.IsSpectatingPlayerPOV && !GameState.InReplayMode) && !PLAYER_INFO_DISPLAY_STATE) {
312312
ShowPlayerInfo();
313+
PLAYER_INFO_DISPLAY_STATE = true;
313314
}
314315

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

335336
GameState.CurrentSpec.CurrentBoostAmount = 0;
336337

337-
if (GameState.IsSpectatingPlayerPOV || GameState.InReplayMode) {
338+
if ((GameState.IsSpectatingPlayerPOV || GameState.InReplayMode) && PLAYER_INFO_DISPLAY_STATE) {
338339
HidePlayerInfo();
340+
PLAYER_INFO_DISPLAY_STATE = false;
339341
}
340342

341343
GameState.IsSpectatingPlayerPOV = false;

0 commit comments

Comments
 (0)