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();