summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-03 17:23:55 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-03 17:23:55 +0300
commit0bdaa773a4ee5a678c400a1b097190e3856ee5a6 (patch)
treed9855dad5292cc218be9251fecf3f53aa0fede35 /src/client.cpp
parent7aec0517fe0874b5ac6e6590d442aa89a6f8f5a7 (diff)
downloadmv-0bdaa773a4ee5a678c400a1b097190e3856ee5a6.tar.gz
mv-0bdaa773a4ee5a678c400a1b097190e3856ee5a6.tar.bz2
mv-0bdaa773a4ee5a678c400a1b097190e3856ee5a6.tar.xz
mv-0bdaa773a4ee5a678c400a1b097190e3856ee5a6.zip
Convert UpdateType enum into strong typed enum.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index bf0bc99ba..5c670696f 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -86,6 +86,7 @@
#include "net/loginhandler.h"
#include "net/net.h"
#include "net/netconsts.h"
+#include "net/updatetypeoperators.h"
#include "net/packetlimiter.h"
#include "net/partyhandler.h"
@@ -1078,8 +1079,8 @@ int Client::gameExec()
// lower than the default value
theme->setMinimumOpacity(0.8F);
- loginData.updateType
- = serverConfig.getValue("updateType", 0);
+ loginData.updateType = static_cast<UpdateTypeT>(
+ serverConfig.getValue("updateType", 0));
mSearchHash = Net::Download::adlerBuffer(
const_cast<char*>(mCurrentServer.hostname.c_str()),