summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-11 17:32:57 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-11 17:32:57 +0300
commit86b8c903900a59f99b2e1f02232476d600ae5a12 (patch)
tree6cb05135934459df645e4e82119536bc579980a2 /src/client.cpp
parentfdfe2900f11958b7851f6c57a15ad0dc80334a11 (diff)
downloadManaVerse-86b8c903900a59f99b2e1f02232476d600ae5a12.tar.gz
ManaVerse-86b8c903900a59f99b2e1f02232476d600ae5a12.tar.bz2
ManaVerse-86b8c903900a59f99b2e1f02232476d600ae5a12.tar.xz
ManaVerse-86b8c903900a59f99b2e1f02232476d600ae5a12.zip
Improve a bit variables order in some classes.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 00da29af0..d8cd1f6f2 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -76,6 +76,7 @@
#include "gui/widgets/desktop.h"
#include "net/chathandler.h"
+#include "net/download.h"
#include "net/gamehandler.h"
#include "net/generalhandler.h"
#include "net/guildhandler.h"
@@ -186,6 +187,7 @@ int serverVersion = 0;
unsigned int tmwServerVersion = 0;
int start_time;
unsigned int mLastHost = 0;
+unsigned long mSearchHash = 0;
int textures_count = 0;
#ifdef WIN32
@@ -244,13 +246,13 @@ Client::Client(const Options &options) :
mOldState(STATE_START),
mIcon(nullptr),
mCaption(),
+ mOldUpdates(),
mFpsManager(),
mSkin(nullptr),
+ mGuiAlpha(1.0F),
mButtonPadding(1),
mButtonSpacing(3),
mKeyboardHeight(0),
- mOldUpdates(),
- mGuiAlpha(1.0F),
mLimitFps(false),
mConfigAutoSaved(false),
mIsMinimized(false),
@@ -1301,6 +1303,9 @@ int Client::gameExec()
loginData.updateType
= serverConfig.getValue("updateType", 1);
+ mSearchHash = Net::Download::adlerBuffer(
+ const_cast<char*>(mCurrentServer.hostname.c_str()),
+ mCurrentServer.hostname.size());
if (mOptions.username.empty()
|| mOptions.password.empty())
{