summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index a4104ce03..99ef5a242 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -3455,7 +3455,6 @@ void LocalPlayer::pingRequest()
std::string LocalPlayer::getPingTime() const
{
- int time = 0;
std::string str;
if (!mWaitPing)
{
@@ -3466,7 +3465,7 @@ std::string LocalPlayer::getPingTime() const
}
else
{
- time = tick_time;
+ int time = tick_time;
if (time > mPingSendTick)
time -= mPingSendTick;
else