diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2011-06-19 23:02:16 +0200 |
---|---|---|
committer | Stefan Dombrowski <stefan@uni-bonn.de> | 2011-06-19 23:02:16 +0200 |
commit | 2a11c6c5d874d661dcb7f016183c3c3e64e65f3c (patch) | |
tree | 952c48598920fbc9f7b81c49d035961c30ddb29f /src/party.cpp | |
parent | d42f25aa5b8c8f356ab08397d23047e226d57b24 (diff) | |
download | mana-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.cpp | 4 |
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; } |