summaryrefslogtreecommitdiff
path: root/src/party.cpp
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2011-06-19 23:02:16 +0200
committerStefan Dombrowski <stefan@uni-bonn.de>2011-06-19 23:02:16 +0200
commit2a11c6c5d874d661dcb7f016183c3c3e64e65f3c (patch)
tree952c48598920fbc9f7b81c49d035961c30ddb29f /src/party.cpp
parentd42f25aa5b8c8f356ab08397d23047e226d57b24 (diff)
downloadmana-2a11c6c5d874d661dcb7f016183c3c3e64e65f3c.tar.gz
mana-2a11c6c5d874d661dcb7f016183c3c3e64e65f3c.tar.bz2
mana-2a11c6c5d874d661dcb7f016183c3c3e64e65f3c.tar.xz
mana-2a11c6c5d874d661dcb7f016183c3c3e64e65f3c.zip
Making party invite functional
Reviewed-by: Bjorn
Diffstat (limited to 'src/party.cpp')
-rw-r--r--src/party.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/party.cpp b/src/party.cpp
index 99295792..e6d9167f 100644
--- a/src/party.cpp
+++ b/src/party.cpp
@@ -22,6 +22,8 @@
#include "actorspritemanager.h"
+#include "net/net.h"
+
PartyMember::PartyMember(Party *party, int id, const std::string &name):
Avatar(name), mId(id), mParty(party), mLeader(false)
{
@@ -44,7 +46,7 @@ Party::~Party()
PartyMember *Party::addMember(int id, const std::string &name)
{
PartyMember *m;
- if ((m = getMember(id)))
+ if (Net::getNetworkType() == ServerInfo::TMWATHENA && (m = getMember(id)))
{
return m;
}