equal
deleted
inserted
replaced
104 |
104 |
105 void HWNewNet::AddTeam(const HWTeam & team) |
105 void HWNewNet::AddTeam(const HWTeam & team) |
106 { |
106 { |
107 QString cmd = QString("ADD_TEAM") + delimeter + |
107 QString cmd = QString("ADD_TEAM") + delimeter + |
108 team.name() + delimeter + |
108 team.name() + delimeter + |
109 team.color().name() + delimeter + |
109 QString::number(team.color()) + delimeter + |
110 team.grave() + delimeter + |
110 team.grave() + delimeter + |
111 team.fort() + delimeter + |
111 team.fort() + delimeter + |
112 team.voicepack() + delimeter + |
112 team.voicepack() + delimeter + |
113 team.flag() + delimeter + |
113 team.flag() + delimeter + |
114 QString::number(team.difficulty()); |
114 QString::number(team.difficulty()); |
611 { |
611 { |
612 qWarning("Net: Bad TEAM_COLOR message"); |
612 qWarning("Net: Bad TEAM_COLOR message"); |
613 return; |
613 return; |
614 } |
614 } |
615 HWTeam tmptm(lst[1]); |
615 HWTeam tmptm(lst[1]); |
616 tmptm.setColor(QColor(lst[2])); |
616 tmptm.setColor(lst[2].toInt()); |
617 emit teamColorChanged(tmptm); |
617 emit teamColorChanged(tmptm); |
618 return; |
618 return; |
619 } |
619 } |
620 |
620 |
621 if (lst[0] == "EM") |
621 if (lst[0] == "EM") |
685 { |
685 { |
686 if (isChief) |
686 if (isChief) |
687 RawSendNet(QString("TEAM_COLOR%1%2%1%3") |
687 RawSendNet(QString("TEAM_COLOR%1%2%1%3") |
688 .arg(delimeter) |
688 .arg(delimeter) |
689 .arg(team.name()) |
689 .arg(team.name()) |
690 .arg(team.color().name())); |
690 .arg(team.color())); |
691 } |
691 } |
692 |
692 |
693 void HWNewNet::onParamChanged(const QString & param, const QStringList & value) |
693 void HWNewNet::onParamChanged(const QString & param, const QStringList & value) |
694 { |
694 { |
695 if (isChief) |
695 if (isChief) |