current character select fix

This commit is contained in:
simio 2025-02-20 18:51:42 -03:00
parent 70041822bb
commit e6c8951dff

View File

@ -132,7 +132,7 @@ class charselect(QtGui.QWidget):
self.buttons[ind].setPixmap(QtGui.QPixmap(filename)) self.buttons[ind].setPixmap(QtGui.QPixmap(filename))
def onCharClicked(self, ind): def onCharClicked(self, ind):
if self.parent.charname.lower() == self.charlist[ind][0].lower(): if self.parent.charname.lower() == self.charlist[ind+self.page*self.max_chars_on_page][0].lower():
self.hide() self.hide()
return return
self.parent.tcp.send("CC#0#"+str(ind+(self.page*self.max_chars_on_page))+"#ur mom gay#%") self.parent.tcp.send("CC#0#"+str(ind+(self.page*self.max_chars_on_page))+"#ur mom gay#%")