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:
Kamron Batman 2021-02-08 11:57:00 -08:00 committed by GitHub
parent b9cb85855b
commit 1fd60c6f9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -717,8 +717,13 @@ namespace Server.Network
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);
#else
// Reset the state because CUO/Orion do not reconnect
_parserState = ParserState.AwaitingNextPacket;
_protocolState = ProtocolState.AwaitingSeed;
#endif
return true;
}