Some minor changes to further support the OTP protocol

This commit is contained in:
Open Toontown 2022-01-03 20:18:17 -05:00
parent ddabfcf3fc
commit ba8605b93f
2 changed files with 2 additions and 2 deletions

View file

@ -961,7 +961,7 @@ class OTPClientRepository(ClientRepositoryBase):
avNames[1] = di.getString()
avNames[2] = di.getString()
avNames[3] = di.getString()
avDNA = di.getString()
avDNA = di.getBlob()
avPosition = di.getUint8()
aname = di.getUint8()
potAv = PotentialAvatar(avNum, avNames, avDNA, avPosition, aname)

View file

@ -24,7 +24,7 @@ class LoginTTAccount(LoginBase.LoginBase):
datagram.addString(cr.serverVersion)
datagram.addUint32(cr.hashVal)
self.__addTokenType(datagram)
datagram.addString(cr.wantMagicWords)
datagram.addString('YES' if cr.wantMagicWords else 'NO')
else:
datagram.addUint16(CLIENT_LOGIN_2)
self.__addPlayToken(datagram)