mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix handleUnexpectedMsgType for non OTP server
This commit is contained in:
parent
9538bc5a39
commit
4e03d03391
@ -591,30 +591,31 @@ class ClientRepository(ConnectionRepository.ConnectionRepository):
|
|||||||
self.send(obj.dclass.clientFormatGenerate(obj, id, zone, []))
|
self.send(obj.dclass.clientFormatGenerate(obj, id, zone, []))
|
||||||
|
|
||||||
def handleUnexpectedMsgType(self, msgType, di):
|
def handleUnexpectedMsgType(self, msgType, di):
|
||||||
if msgType == CLIENT_CREATE_OBJECT_REQUIRED:
|
if msgType == CLIENT_GO_GET_LOST:
|
||||||
self.handleGenerateWithRequired(di)
|
|
||||||
elif msgType == CLIENT_CREATE_OBJECT_REQUIRED_OTHER:
|
|
||||||
self.handleGenerateWithRequiredOther(di)
|
|
||||||
elif msgType == CLIENT_OBJECT_UPDATE_FIELD:
|
|
||||||
self.handleUpdateField(di)
|
|
||||||
elif msgType == CLIENT_OBJECT_DISABLE_RESP:
|
|
||||||
self.handleDisable(di)
|
|
||||||
elif msgType == CLIENT_OBJECT_DELETE_RESP:
|
|
||||||
self.handleDelete(di)
|
|
||||||
elif msgType == CLIENT_GO_GET_LOST:
|
|
||||||
self.handleGoGetLost(di)
|
self.handleGoGetLost(di)
|
||||||
elif msgType == CLIENT_HEARTBEAT:
|
elif msgType == CLIENT_HEARTBEAT:
|
||||||
self.handleServerHeartbeat(di)
|
self.handleServerHeartbeat(di)
|
||||||
elif msgType == CLIENT_SYSTEM_MESSAGE:
|
elif wantOtpServer:
|
||||||
self.handleSystemMessage(di)
|
if msgType == CLIENT_CREATE_OBJECT_REQUIRED:
|
||||||
elif wantOtpServer and msgType == CLIENT_CREATE_OBJECT_REQUIRED:
|
self.handleGenerateWithRequired(di)
|
||||||
self.handleGenerateWithRequired(di)
|
elif msgType == CLIENT_CREATE_OBJECT_REQUIRED_OTHER:
|
||||||
elif wantOtpServer and msgType == CLIENT_CREATE_OBJECT_REQUIRED_OTHER:
|
self.handleGenerateWithRequiredOther(di)
|
||||||
self.handleGenerateWithRequiredOther(di)
|
elif msgType == CLIENT_OBJECT_UPDATE_FIELD:
|
||||||
elif wantOtpServer and msgType == CLIENT_DONE_SET_ZONE_RESP:
|
self.handleUpdateField(di)
|
||||||
self.handleSetZoneDone()
|
elif msgType == CLIENT_OBJECT_DISABLE_RESP:
|
||||||
elif wantOtpServer and msgType == CLIENT_OBJECT_LOCATION:
|
self.handleDisable(di)
|
||||||
self.handleObjectLocation(di)
|
elif msgType == CLIENT_OBJECT_DELETE_RESP:
|
||||||
|
self.handleDelete(di)
|
||||||
|
elif msgType == CLIENT_SYSTEM_MESSAGE:
|
||||||
|
self.handleSystemMessage(di)
|
||||||
|
elif msgType == CLIENT_CREATE_OBJECT_REQUIRED:
|
||||||
|
self.handleGenerateWithRequired(di)
|
||||||
|
elif msgType == CLIENT_CREATE_OBJECT_REQUIRED_OTHER:
|
||||||
|
self.handleGenerateWithRequiredOther(di)
|
||||||
|
elif msgType == CLIENT_DONE_SET_ZONE_RESP:
|
||||||
|
self.handleSetZoneDone()
|
||||||
|
elif msgType == CLIENT_OBJECT_LOCATION:
|
||||||
|
self.handleObjectLocation(di)
|
||||||
else:
|
else:
|
||||||
currentLoginState = self.loginFSM.getCurrentState()
|
currentLoginState = self.loginFSM.getCurrentState()
|
||||||
if currentLoginState:
|
if currentLoginState:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user