Delete mpkt and some calls to it

This commit is contained in:
Akkadius 2015-01-16 22:04:40 -06:00
parent a6c521a73e
commit 449c12d6c2
2 changed files with 1 additions and 11 deletions

View File

@ -156,14 +156,6 @@ extern void log_raw_packet(LogType type, uint16 seq, const BasePacket *p);
log_hex_mob(type, this, data, len); \
} \
} while(false)
extern void log_packet_mob(LogType type, Mob *who, const BasePacket *p);
#define mpkt( type, packet) \
do { \
if(1) \
if(log_type_info[ type ].enabled) { \
log_packet_mob(type, this, packet); \
} \
} while(false)
#endif
extern void log_enable(LogType t);

View File

@ -401,7 +401,6 @@ int Client::HandlePacket(const EQApplicationPacket *app)
char buffer[64];
app->build_header_dump(buffer);
mlog(CLIENT__NET_IN_TRACE, "Dispatch opcode: %s", buffer);
mpkt(CLIENT__NET_IN_TRACE, app);
}
EmuOpcode opcode = app->GetOpcode();
@ -5835,7 +5834,6 @@ void Client::Handle_OP_FriendsWho(const EQApplicationPacket *app)
void Client::Handle_OP_GetGuildMOTD(const EQApplicationPacket *app)
{
mlog(GUILDS__IN_PACKETS, "Received OP_GetGuildMOTD");
mpkt(GUILDS__IN_PACKET_TRACE, app);
SendGuildMOTD(true);
@ -7219,7 +7217,7 @@ void Client::Handle_OP_GuildCreate(const EQApplicationPacket *app)
void Client::Handle_OP_GuildDelete(const EQApplicationPacket *app)
{
mlog(GUILDS__IN_PACKETS, "Received OP_GuildDelete");
mpkt(GUILDS__IN_PACKET_TRACE, app);
mpkt(GUILDS__IN_PACKET_TRACE, app);s
if (!IsInAGuild() || !guild_mgr.IsGuildLeader(GuildID(), CharacterID()))
Message(0, "You are not a guild leader or not in a guild.");