summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-01 22:19:21 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-01 22:19:21 +0300
commit869c7fe8852248f03849c930c894d8fa218631b5 (patch)
treef86356b6565f68ebd8ba8f6b69ea3a6b5e87b251 /src/localplayer.cpp
parentf659dfb18c130896f5c51fffca7fbe79f6eba502 (diff)
downloadmv-869c7fe8852248f03849c930c894d8fa218631b5.tar.gz
mv-869c7fe8852248f03849c930c894d8fa218631b5.tar.bz2
mv-869c7fe8852248f03849c930c894d8fa218631b5.tar.xz
mv-869c7fe8852248f03849c930c894d8fa218631b5.zip
Fix code style.
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