From 23b2b599a7c670258d928085e748ab34ee49082a Mon Sep 17 00:00:00 2001 From: Derision Date: Sun, 17 Feb 2013 20:23:34 +0000 Subject: [PATCH] Fixed bug where BecomeTrader packets were only being sent to the Trader, not all other clients in the bazaar. --- changelog.txt | 2 ++ zone/trading.cpp | 17 ++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 9cdc4d9c6..203909266 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,8 @@ EQEMu Changelog (Started on Sept 24, 2003 15:50) ------------------------------------------------------- == 02/17/2013 == Derision: Added optional guildid and minstatus parameters to quest::gmsay(, [color], [toworld], [guildid], [minstatus]) +Derision: Client version is now returned by the stream proxy as a number. +Derision: Fixed bug where BecomeTrader packets were only being sent to the Trader, not all other clients in the bazaar. == 02/16/2013 == demonstar55: Fix AA reuse timer calc diff --git a/zone/trading.cpp b/zone/trading.cpp index e7530685b..472fedfe6 100644 --- a/zone/trading.cpp +++ b/zone/trading.cpp @@ -769,7 +769,22 @@ void Client::Trader_StartTrader() { safe_delete(outapp); // Notify other clients we are now in trader mode - SendTraderPacket(this, 0); + + outapp= new EQApplicationPacket(OP_BecomeTrader, sizeof(BecomeTrader_Struct)); + + BecomeTrader_Struct* bts = (BecomeTrader_Struct*)outapp->pBuffer; + + bts->Code = 1; + + bts->ID = this->GetID(); + + strn0cpy(bts->Name, GetName(), sizeof(bts->Name)); + + entity_list.QueueClients(this, outapp, false); + + _pkt(TRADING__PACKETS, outapp); + + safe_delete(outapp); } void Client::Trader_EndTrader() {