Disabled button in lobby which holds players name.

This commit is contained in:
alketii 2014-05-23 22:43:36 +02:00
parent 0f3d6c084f
commit cac1cc3e6e

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());