diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-14 00:24:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-14 00:24:26 +0300 |
commit | 69348d6158802801a626938d5ced85807fd514d8 (patch) | |
tree | 647dc95866ef2ef2d9d1c112459a8ce9f321bcfe /src/gui/windows/socialwindow.cpp | |
parent | 8438ad4513e9aa2af4b42317aa05358e36f06e98 (diff) | |
download | manaverse-69348d6158802801a626938d5ced85807fd514d8.tar.gz manaverse-69348d6158802801a626938d5ced85807fd514d8.tar.bz2 manaverse-69348d6158802801a626938d5ced85807fd514d8.tar.xz manaverse-69348d6158802801a626938d5ced85807fd514d8.zip |
eathena: fix packet SMSG_PARTY_INVITED 0x02c6.
Diffstat (limited to 'src/gui/windows/socialwindow.cpp')
-rw-r--r-- | src/gui/windows/socialwindow.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp index 9005e8b35..6fae8deaa 100644 --- a/src/gui/windows/socialwindow.cpp +++ b/src/gui/windows/socialwindow.cpp @@ -91,6 +91,7 @@ SocialWindow::SocialWindow() : mTabs(new TabbedArea(this)), mMap(nullptr), mLastUpdateTime(0), + mPartyId(0), mNeedUpdate(false), mProcessedPortals(false) { @@ -275,7 +276,7 @@ void SocialWindow::action(const ActionEvent &event) strprintf(_("Accepted party invite from %s."), mPartyInviter.c_str())); } - partyHandler->inviteResponse(mPartyInviter, true); + partyHandler->inviteResponse(mPartyInviter, mPartyId, true); } else if (eventId == "no") { @@ -286,7 +287,7 @@ void SocialWindow::action(const ActionEvent &event) strprintf(_("Rejected party invite from %s."), mPartyInviter.c_str())); } - partyHandler->inviteResponse(mPartyInviter, false); + partyHandler->inviteResponse(mPartyInviter, mPartyId, false); } mPartyInviter.clear(); @@ -431,7 +432,8 @@ void SocialWindow::showGuildInvite(const std::string &restrict guildName, } void SocialWindow::showPartyInvite(const std::string &restrict partyName, - const std::string &restrict inviter) + const std::string &restrict inviter, + const int partyId) { // check there isnt already an invite showing if (!mPartyInviter.empty()) @@ -486,6 +488,7 @@ void SocialWindow::showPartyInvite(const std::string &restrict partyName, mPartyAcceptDialog->postInit(); mPartyAcceptDialog->addActionListener(this); mPartyInviter = inviter; + mPartyId = partyId; } void SocialWindow::showPartyCreate() |