Skip to content

Commit

Permalink
fix: party hunt analyzer prices from leader (#817)
Browse files Browse the repository at this point in the history
The connection was being terminated upon altering the party hunt analyzer from market to leader, as the tibia client transmitted packages containing information on all cyclopedia items, and these package sizes exceeded what the server was able to accept.

The party hunt analyzer was not being refreshed following the alteration of the party leader.
  • Loading branch information
ElimarCosta authored Jan 28, 2023
1 parent 88163e6 commit a8df3e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/creatures/players/grouping/party.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ bool Party::passPartyLeadership(Player* player)
memberList.insert(memberList.begin(), oldLeader);

updateSharedExperience();
updateTrackerAnalyzer();

for (Player* member : memberList) {
member->sendPartyCreatureShield(oldLeader);
Expand Down
4 changes: 1 addition & 3 deletions src/utils/const.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ const uint32_t MAX_STATICWALK = 100;
static constexpr size_t NETWORKMESSAGE_PLAYERNAME_MAXLENGTH = 30;
static constexpr int32_t NETWORKMESSAGE_MAXSIZE = 65500;

// QT clients probably have bigger input buffer because of exiva options
// But for now we don't support exiva options
static constexpr int32_t INPUTMESSAGE_MAXSIZE = 2048;
static constexpr int32_t INPUTMESSAGE_MAXSIZE = 4096;

static constexpr int32_t CHANNEL_GUILD = 0x00;
static constexpr int32_t CHANNEL_PARTY = 0x01;
Expand Down

0 comments on commit a8df3e3

Please sign in to comment.