summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-28 00:18:58 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-28 00:18:58 +0300
commit106180f42f536f4b898a72f36af1b2be28d1a8ed (patch)
treed06085bba2d67e332dee981084751f255e57c7d3 /src/net/ea
parent064a2aea075b9d519912e7fdb98c5e06eb4ab9f0 (diff)
downloadmanaverse-106180f42f536f4b898a72f36af1b2be28d1a8ed.tar.gz
manaverse-106180f42f536f4b898a72f36af1b2be28d1a8ed.tar.bz2
manaverse-106180f42f536f4b898a72f36af1b2be28d1a8ed.tar.xz
manaverse-106180f42f536f4b898a72f36af1b2be28d1a8ed.zip
Fix guild name reset on players from time.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/beinghandler.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp
index 06e86f8a4..2714f94ce 100644
--- a/src/net/ea/beinghandler.cpp
+++ b/src/net/ea/beinghandler.cpp
@@ -29,6 +29,7 @@
#include "client.h"
#include "effectmanager.h"
#include "guild.h"
+#include "guildmanager.h"
#include "keyboardconfig.h"
#include "localplayer.h"
#include "logger.h"
@@ -661,7 +662,8 @@ void BeingHandler::processPlayerGuilPartyInfo(Net::MessageIn &msg)
if ((dstBeing = actorSpriteManager->findBeing(msg.readInt32())))
{
dstBeing->setPartyName(msg.readString(24));
- dstBeing->setGuildName(msg.readString(24));
+ if (!guildManager || !guildManager->getEnableGuildBot())
+ dstBeing->setGuildName(msg.readString(24));
dstBeing->setGuildPos(msg.readString(24));
dstBeing->addToCache();
msg.readString(24); // Discard this