Merge pull request #13 from alketii/master

Disabled button in lobby which holds players name.
This commit is contained in:
Mark Vejvoda 2014-12-02 10:59:03 -08:00
commit 40df13461e

View File

@ -857,7 +857,7 @@ void MenuStateMasterserver::update() {
button->setFont(CoreData::getInstance().getDisplayFontSmall());
button->setFont3D(CoreData::getInstance().getDisplayFontSmall3D());
button->setText(nickList[i]);
if(strncmp(&nickList[i][0],"MG_",3) != 0) {
if(strncmp(&nickList[i][0],"MG_",3) != 0 || &nickList[i][0] == currentIrcNick) {
button->setEnabled(false);
button->setEditable(false);
button->setCustomTexture(CoreData::getInstance().getCustomTexture());