fix(core): Fixes connecting with CUO/Orion (#489)
- [X] Fixes connecting with CUO/Orion. - [X] Adds the ability to be strict with the protocol by passing STRICT_UO_PROTOCOL to the build process.
This commit is contained in:
parent
b9cb85855b
commit
1fd60c6f9f
1 changed files with 6 additions and 1 deletions
|
|
@ -717,8 +717,13 @@ namespace Server.Network
|
||||||
|
|
||||||
case ProtocolState.LoginServer_ServerSelectAck:
|
case ProtocolState.LoginServer_ServerSelectAck:
|
||||||
{
|
{
|
||||||
// The code should never arrive here unless a packet is sent after server select.
|
#if STRICT_UO_PROTOCOL
|
||||||
HandleError(packetId, packetLength);
|
HandleError(packetId, packetLength);
|
||||||
|
#else
|
||||||
|
// Reset the state because CUO/Orion do not reconnect
|
||||||
|
_parserState = ParserState.AwaitingNextPacket;
|
||||||
|
_protocolState = ProtocolState.AwaitingSeed;
|
||||||
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue