Open lobby as early as possible

This commit is contained in:
Guangcong Luo 2013-05-30 22:22:34 -05:00
parent 287a2fdad3
commit f44df969fc

View File

@ -233,6 +233,9 @@
this.topbar = new Topbar({el: $('#header')});
this.addRoom('');
if ($(window).width() >= 916) {
this.addRoom('lobby');
}
var self = this;
@ -655,10 +658,6 @@
self.send('{"room":"lobby","nojoin":1,"type":"join"}', true);
}
if ($(window).width() >= 916) {
self.addRoom('lobby');
}
var avatar = Tools.prefs('avatar');
if (avatar) {
// This will be compatible even with servers that don't support