diff --git a/frontend/assets/scenes/login.fire b/frontend/assets/scenes/login.fire index 020e9a8..ef147fd 100644 --- a/frontend/assets/scenes/login.fire +++ b/frontend/assets/scenes/login.fire @@ -440,7 +440,7 @@ "array": [ 0, 0, - 216.05530045313827, + 344.75930058781137, 0, 0, 0, diff --git a/frontend/assets/scripts/Map.js b/frontend/assets/scripts/Map.js index 778d5c9..d3d30e7 100644 --- a/frontend/assets/scripts/Map.js +++ b/frontend/assets/scripts/Map.js @@ -253,8 +253,8 @@ cc.Class({ if (null != window.handleBattleColliderInfo) { window.handleBattleColliderInfo = null; } - if (null != window.handleClientSessionCloseOrError) { - window.handleClientSessionCloseOrError = null; + if (null != window.handleClientSessionError) { + window.handleClientSessionError = null; } }, @@ -349,8 +349,8 @@ cc.Class({ window.forceBigEndianFloatingNumDecoding = self.forceBigEndianFloatingNumDecoding; console.warn("+++++++ Map onLoad()"); - window.handleClientSessionCloseOrError = function() { - console.warn('+++++++ Common handleClientSessionCloseOrError()'); + window.handleClientSessionError = function() { + console.warn('+++++++ Common handleClientSessionError()'); if (ALL_BATTLE_STATES.IN_SETTLEMENT == self.battleState) { console.log("Battled ended by settlement"); diff --git a/frontend/assets/scripts/WsSessionMgr.js b/frontend/assets/scripts/WsSessionMgr.js index 063ff74..d33ecea 100644 --- a/frontend/assets/scripts/WsSessionMgr.js +++ b/frontend/assets/scripts/WsSessionMgr.js @@ -224,6 +224,7 @@ window.initPersistentSessionClient = function(onopenCb, expectedRoomId) { case constants.RET_CODE.MYSQL_ERROR: case constants.RET_CODE.PLAYER_NOT_FOUND: case constants.RET_CODE.PLAYER_CHEATING: + case 1006: // Peer(i.e. the backend) gone unexpectedly if (window.handleClientSessionError) { window.handleClientSessionError(); }