From 86b8c903900a59f99b2e1f02232476d600ae5a12 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 11 Mar 2014 17:32:57 +0300 Subject: Improve a bit variables order in some classes. --- src/client.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/client.cpp') 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(mCurrentServer.hostname.c_str()), + mCurrentServer.hostname.size()); if (mOptions.username.empty() || mOptions.password.empty()) { -- cgit v1.2.3-60-g2f50