summaryrefslogtreecommitdiff
path: root/src/gui/killstats.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-09 20:19:51 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-09 20:19:51 +0300
commitf1db2118bec94c32ebda6a281dc956ba1a480163 (patch)
tree21e81d9701cc758d0d1bf171c657ba4f722b69df /src/gui/killstats.cpp
parent4aeceabb5d4f00e2555234951a2f5db24b008265 (diff)
downloadmv-f1db2118bec94c32ebda6a281dc956ba1a480163.tar.gz
mv-f1db2118bec94c32ebda6a281dc956ba1a480163.tar.bz2
mv-f1db2118bec94c32ebda6a281dc956ba1a480163.tar.xz
mv-f1db2118bec94c32ebda6a281dc956ba1a480163.zip
Improve slow login update speed.
Diffstat (limited to 'src/gui/killstats.cpp')
-rw-r--r--src/gui/killstats.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/gui/killstats.cpp b/src/gui/killstats.cpp
index c1a858a79..f77c9a8f4 100644
--- a/src/gui/killstats.cpp
+++ b/src/gui/killstats.cpp
@@ -88,8 +88,7 @@ KillStats::KillStats():
mJackoId(0),
mIsJackoAlive(false),
mIsJackoMustSpawn(true),
- mIsJackoSpawnTimeUnknown(true),
- mUpdateTime(cur_time + 1)
+ mIsJackoSpawnTimeUnknown(true)
{
setWindowName("Kill stats");
setCloseButton(true);
@@ -304,12 +303,6 @@ void KillStats::update()
{
BLOCK_START("KillStats::update")
- const int time = cur_time;
- if (mUpdateTime > time)
- return;
-
- mUpdateTime = time + 1;
-
mExpSpeed1Label->setCaption(strprintf(ngettext("Exp speed per %d min: %s",
"Exp speed per %d min: %s", 1), 1, toString(m1minSpeed).c_str()));