QTfrontend/team.cpp
changeset 7439 0a494f951dcf
parent 7313 162bc562335b
child 7955 85b3970b402a
equal deleted inserted replaced
7358:57a508884052 7439:0a494f951dcf
   257 QStringList HWTeam::teamGameConfig(quint32 InitHealth) const
   257 QStringList HWTeam::teamGameConfig(quint32 InitHealth) const
   258 {
   258 {
   259     QStringList sl;
   259     QStringList sl;
   260     if (m_isNetTeam)
   260     if (m_isNetTeam)
   261     {
   261     {
   262         sl.push_back(QString("eaddteam %3 %1 %2").arg(qcolor().rgb() & 0xffffff).arg(m_name).arg(QString(QCryptographicHash::hash(m_owner.toLatin1(), QCryptographicHash::Md5).toHex())));
   262         sl.push_back(QString("eaddteam %3 %1 %2").arg(qcolor().rgb() & 0xffffff).arg(m_name).arg(QString(QCryptographicHash::hash(m_owner.toUtf8(), QCryptographicHash::Md5).toHex())));
   263         sl.push_back("erdriven");
   263         sl.push_back("erdriven");
   264     }
   264     }
   265     else sl.push_back(QString("eaddteam %3 %1 %2").arg(qcolor().rgb() & 0xffffff).arg(m_name).arg(playerHash));
   265     else sl.push_back(QString("eaddteam %3 %1 %2").arg(qcolor().rgb() & 0xffffff).arg(m_name).arg(playerHash));
   266 
   266 
   267     sl.push_back(QString("egrave " + m_grave));
   267     sl.push_back(QString("egrave " + m_grave));