This commit is contained in:
libccy 2016-04-06 17:20:08 +08:00
parent 385f0ec83e
commit ed2775ad17
2 changed files with 5 additions and 10 deletions

View File

@ -3748,7 +3748,7 @@
if(lib.config.cheat&&!_status.connectMode){ if(lib.config.cheat&&!_status.connectMode){
cheat.i(); cheat.i();
} }
else if(!lib.config.debug){ else{
lib.cheat=window.cheat; lib.cheat=window.cheat;
delete window.cheat; delete window.cheat;
} }
@ -11533,6 +11533,8 @@
ui.ipbutton.delete(); ui.ipbutton.delete();
delete ui.ipbutton; delete ui.ipbutton;
} }
clearTimeout(_status.event.createNodeTimeout);
var proceed=function(){ var proceed=function(){
game.loadModeAsync(config.mode,function(mode){ game.loadModeAsync(config.mode,function(mode){
for(var i in mode.ai){ for(var i in mode.ai){
@ -11591,6 +11593,7 @@
ui.ipbutton.delete(); ui.ipbutton.delete();
delete ui.ipbutton; delete ui.ipbutton;
} }
clearTimeout(_status.event.createNodeTimeout);
game.online=true; game.online=true;
game.ip=ip; game.ip=ip;
if(observe){ if(observe){
@ -20045,10 +20048,6 @@
var button1,button2; var button1,button2;
game.checkForUpdate=function(forcecheck){ game.checkForUpdate=function(forcecheck){
if(lib.config.debug){
alert('不能在开发模式下更新');
return;
}
if(button1.disabled){ if(button1.disabled){
return; return;
} }
@ -20166,10 +20165,6 @@
} }
}; };
var checkForAssetUpdate=function(){ var checkForAssetUpdate=function(){
if(lib.config.debug){
alert('不能在开发模式下更新');
return;
}
if(button2.disabled){ if(button2.disabled){
return; return;
} }

View File

@ -67,7 +67,7 @@ mode.connect={
}); });
}; };
event.timeout=setTimeout(connect,500); event.timeout=setTimeout(connect,500);
setTimeout(createNode,2000); event.createNodeTimeout=setTimeout(createNode,2000);
} }
else{ else{
createNode(); createNode();