Remove MG_ and _NNN from Players List

Remove MG_ and _NNN from Players List but not inside chat, that is for another day.
This commit is contained in:
Alket Rexhepi
2018-03-21 00:50:20 +01:00
committed by GitHub
parent 9cb45dff23
commit 045b0b88e0

View File

@@ -1278,7 +1278,13 @@ namespace Glest
button->setFont (CoreData::getInstance ().getDisplayFontSmall ());
button->setFont3D (CoreData::getInstance ().
getDisplayFontSmall3D ());
if (strncmp (&nickList[i][0], "ZG_", 3) == 0) {
button->setText (nickList[i].substr(3,nickList[i].length()-7));
} else {
button->setText (nickList[i]);
}
if (strncmp (&nickList[i][0], "ZG_", 3) != 0
|| &nickList[i][0] == currentIrcNick)
{