diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-07 21:16:24 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-07 21:23:27 -0600 |
commit | 73c773adfb8b65e1305242ab55607882a46e71c3 (patch) | |
tree | 5b6d767ce2f44e33283f4e78edbb5a08f0c2b52a /src/localplayer.cpp | |
parent | aefbc69aac9f7c793725153eefce2631555bfd1f (diff) | |
download | mana-73c773adfb8b65e1305242ab55607882a46e71c3.tar.gz mana-73c773adfb8b65e1305242ab55607882a46e71c3.tar.bz2 mana-73c773adfb8b65e1305242ab55607882a46e71c3.tar.xz mana-73c773adfb8b65e1305242ab55607882a46e71c3.zip |
Implement TMWServ's PartyHandler
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index fea3bae8..d44e28c0 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -45,6 +45,7 @@ #include "net/inventoryhandler.h" #include "net/net.h" +#include "net/partyhandler.h" #include "net/playerhandler.h" #include "net/tradehandler.h" @@ -54,7 +55,6 @@ #include "net/tmwserv/gameserver/player.h" #include "net/tmwserv/chatserver/guild.h" -#include "net/tmwserv/chatserver/party.h" #else #include "net/ea/partyhandler.h" #include "net/ea/skillhandler.h" @@ -322,21 +322,12 @@ void LocalPlayer::setInvItem(int index, int id, int amount) void LocalPlayer::inviteToParty(const std::string &name) { -#ifdef TMWSERV_SUPPORT - Net::ChatServer::Party::invitePlayer(name); -#else - // need an id -#endif + Net::getPartyHandler()->invite(name); } void LocalPlayer::inviteToParty(Player *player) { - // Net::getPartyHandler()->invite(player->getId()); -#ifdef TMWSERV_SUPPORT - Net::ChatServer::Party::invitePlayer(player->getName()); -#else - partyHandler->invite(player->getId()); -#endif + Net::getPartyHandler()->invite(player); } void LocalPlayer::moveInvItem(Item *item, int newIndex) |