From ed2775ad1754ea8a885cc1c4648df7b829d86d4c Mon Sep 17 00:00:00 2001 From: libccy Date: Wed, 6 Apr 2016 17:20:08 +0800 Subject: [PATCH] c --- game/game.js | 13 ++++--------- mode/connect.js | 2 +- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/game/game.js b/game/game.js index dab48624b..1ec86c89f 100755 --- a/game/game.js +++ b/game/game.js @@ -3748,7 +3748,7 @@ if(lib.config.cheat&&!_status.connectMode){ cheat.i(); } - else if(!lib.config.debug){ + else{ lib.cheat=window.cheat; delete window.cheat; } @@ -11533,6 +11533,8 @@ ui.ipbutton.delete(); delete ui.ipbutton; } + clearTimeout(_status.event.createNodeTimeout); + var proceed=function(){ game.loadModeAsync(config.mode,function(mode){ for(var i in mode.ai){ @@ -11591,6 +11593,7 @@ ui.ipbutton.delete(); delete ui.ipbutton; } + clearTimeout(_status.event.createNodeTimeout); game.online=true; game.ip=ip; if(observe){ @@ -20045,10 +20048,6 @@ var button1,button2; game.checkForUpdate=function(forcecheck){ - if(lib.config.debug){ - alert('不能在开发模式下更新'); - return; - } if(button1.disabled){ return; } @@ -20166,10 +20165,6 @@ } }; var checkForAssetUpdate=function(){ - if(lib.config.debug){ - alert('不能在开发模式下更新'); - return; - } if(button2.disabled){ return; } diff --git a/mode/connect.js b/mode/connect.js index 001ccecce..eceba431d 100644 --- a/mode/connect.js +++ b/mode/connect.js @@ -67,7 +67,7 @@ mode.connect={ }); }; event.timeout=setTimeout(connect,500); - setTimeout(createNode,2000); + event.createNodeTimeout=setTimeout(createNode,2000); } else{ createNode();