mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 18:51:29 +00:00
Turn HandleZoneChangePacket into method.
This commit is contained in:
parent
495510a02e
commit
b09a3840eb
@ -906,6 +906,15 @@ bool Client::HandleDeleteCharacterPacket(const EQApplicationPacket *app) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Client::HandleZoneChangePacket(const EQApplicationPacket *app) {
|
||||||
|
// HoT sends this to world while zoning and wants it echoed back.
|
||||||
|
if(ClientVersionBit & BIT_RoFAndLater)
|
||||||
|
{
|
||||||
|
QueuePacket(app);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
bool Client::HandlePacket(const EQApplicationPacket *app) {
|
bool Client::HandlePacket(const EQApplicationPacket *app) {
|
||||||
|
|
||||||
EmuOpcode opcode = app->GetOpcode();
|
EmuOpcode opcode = app->GetOpcode();
|
||||||
@ -981,6 +990,11 @@ bool Client::HandlePacket(const EQApplicationPacket *app) {
|
|||||||
eqs->Close();
|
eqs->Close();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
case OP_ZoneChange:
|
||||||
|
{
|
||||||
|
// HoT sends this to world while zoning and wants it echoed back.
|
||||||
|
return HandleZoneChangePacket(app);
|
||||||
|
}
|
||||||
case OP_LoginUnknown1:
|
case OP_LoginUnknown1:
|
||||||
case OP_LoginUnknown2:
|
case OP_LoginUnknown2:
|
||||||
case OP_CrashDump:
|
case OP_CrashDump:
|
||||||
@ -988,16 +1002,9 @@ bool Client::HandlePacket(const EQApplicationPacket *app) {
|
|||||||
case OP_LoginComplete:
|
case OP_LoginComplete:
|
||||||
case OP_ApproveWorld:
|
case OP_ApproveWorld:
|
||||||
case OP_WorldClientReady:
|
case OP_WorldClientReady:
|
||||||
{
|
{
|
||||||
return true;
|
// Essentially we are just 'eating' these packets, indicating
|
||||||
}
|
// they are handled.
|
||||||
case OP_ZoneChange:
|
|
||||||
{
|
|
||||||
// HoT sends this to world while zoning and wants it echoed back.
|
|
||||||
if(ClientVersionBit & BIT_RoFAndLater)
|
|
||||||
{
|
|
||||||
QueuePacket(app);
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|||||||
@ -106,6 +106,7 @@ private:
|
|||||||
bool HandleCharacterCreatePacket(const EQApplicationPacket *app);
|
bool HandleCharacterCreatePacket(const EQApplicationPacket *app);
|
||||||
bool HandleEnterWorldPacket(const EQApplicationPacket *app);
|
bool HandleEnterWorldPacket(const EQApplicationPacket *app);
|
||||||
bool HandleDeleteCharacterPacket(const EQApplicationPacket *app);
|
bool HandleDeleteCharacterPacket(const EQApplicationPacket *app);
|
||||||
|
bool HandleZoneChangePacket(const EQApplicationPacket *app);
|
||||||
|
|
||||||
EQStreamInterface* const eqs;
|
EQStreamInterface* const eqs;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user