From a5d1de8ead73045cce0f3f6cb7d986f2d098ea33 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 20 Aug 2023 13:50:59 +0200 Subject: [PATCH] Rename local variable --- r5dev/engine/net_chan.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/r5dev/engine/net_chan.cpp b/r5dev/engine/net_chan.cpp index 888db6d5..2d2afce0 100644 --- a/r5dev/engine/net_chan.cpp +++ b/r5dev/engine/net_chan.cpp @@ -28,11 +28,11 @@ float CNetChan::GetNetworkLoss() const if (!totalupdates && !this->m_nSequencesSkipped_MAYBE) return 0.0f; - float loss = (float)(totalupdates + m_nSequencesSkipped_MAYBE); + float lossRate = (float)(totalupdates + m_nSequencesSkipped_MAYBE); if (totalupdates + m_nSequencesSkipped_MAYBE < 0.0f) - loss += float(2 ^ 64); + lossRate += float(2 ^ 64); - return m_nSequencesSkipped_MAYBE / loss; + return m_nSequencesSkipped_MAYBE / lossRate; } //-----------------------------------------------------------------------------