Minor refactoring

Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
This commit is contained in:
AMZN-Olex
2021-08-02 19:06:02 -04:00
parent 93a3d3efa0
commit 0620f6dff3
4 changed files with 11 additions and 13 deletions
@@ -341,17 +341,21 @@ namespace Multiplayer
if (m_displayPerEntityStats)
{
// This overrides @net_DebugNetworkEntity_ShowBandwidth value
if (ImGui::Begin("Multiplayer Per Entity Stats", &m_displayPerEntityStats, ImGuiWindowFlags_AlwaysAutoResize))
{
if (ImGui::Checkbox("Show Bandwidth over Entities", &m_displayPerEntityBandwidth))
{
// This overrides @net_DebugNetworkEntity_ShowBandwidth value
if (m_reporter == nullptr)
{
ShowEntityBandwidthDebugOverlay();
}
}
if (m_reporter)
{
m_reporter->OnImGuiUpdate();
}
else
{
ShowEntityBandwidthDebugOverlay();
}
}
}
}