mainmenu.py gotChars check

This commit is contained in:
Mauricio 2020-08-01 23:50:05 -04:00
parent a23956ee34
commit 334664e197
2 changed files with 4 additions and 2 deletions

View File

@ -1023,6 +1023,7 @@ class gui(QtGui.QWidget):
self.emotedropdown.addItem(emotelist[1] + ' ' + emotelist[2])
self.emotedropdown.setCurrentIndex(0)
print "set emote page"
self.set_emote_page()
def set_emote_page(self):

View File

@ -305,10 +305,10 @@ class lobby(QtGui.QWidget):
def get_sv_players(self, item, *args, **kwargs):
tempdata = ""
gotChars = False
hplist = []
areas = [[], [], [], []]
features = []
charlist = None
pingtimer = 150
readytick = -1
text = item.text()
@ -413,6 +413,7 @@ class lobby(QtGui.QWidget):
continue
del network[0]
del network[len(network)-1]
gotChars = True
charlist = [ [char.split('&')[0], -1, "male"] for char in network ]
self.connectprogress.setText('Requesting music list (%d)...' % maxmusic)
self.tcp.send('RM#%')
@ -431,7 +432,7 @@ class lobby(QtGui.QWidget):
print '[client]', 'received songs (%d)' % len(musiclist)
elif header == 'CharsCheck':
if not self.connecting or not charlist:
if not self.connecting or not gotChars:
continue
network.pop(0)
network.pop(len(network)-1)