438 .arg(team.teamColor.name())); |
438 .arg(team.teamColor.name())); |
439 } |
439 } |
440 |
440 |
441 void HWNewNet::onSeedChanged(const QString & seed) |
441 void HWNewNet::onSeedChanged(const QString & seed) |
442 { |
442 { |
443 RawSendNet(QString("CONFIG_PARAM%1SEED%1%2").arg(delimeter).arg(seed)); |
443 if (isChief) RawSendNet(QString("CONFIG_PARAM%1SEED%1%2").arg(delimeter).arg(seed)); |
444 } |
444 } |
445 |
445 |
446 void HWNewNet::onMapChanged(const QString & map) |
446 void HWNewNet::onMapChanged(const QString & map) |
447 { |
447 { |
448 RawSendNet(QString("CONFIG_PARAM%1MAP%1%2").arg(delimeter).arg(map)); |
448 if (isChief) RawSendNet(QString("CONFIG_PARAM%1MAP%1%2").arg(delimeter).arg(map)); |
449 } |
449 } |
450 |
450 |
451 void HWNewNet::onThemeChanged(const QString & theme) |
451 void HWNewNet::onThemeChanged(const QString & theme) |
452 { |
452 { |
453 RawSendNet(QString("CONFIG_PARAM%1THEME%1%2").arg(delimeter).arg(theme)); |
453 if (isChief) RawSendNet(QString("CONFIG_PARAM%1THEME%1%2").arg(delimeter).arg(theme)); |
454 } |
454 } |
455 |
455 |
456 void HWNewNet::onInitHealthChanged(quint32 health) |
456 void HWNewNet::onInitHealthChanged(quint32 health) |
457 { |
457 { |
458 RawSendNet(QString("CONFIG_PARAM%1HEALTH%1%2").arg(delimeter).arg(health)); |
458 if (isChief) RawSendNet(QString("CONFIG_PARAM%1HEALTH%1%2").arg(delimeter).arg(health)); |
459 } |
459 } |
460 |
460 |
461 void HWNewNet::onTurnTimeChanged(quint32 time) |
461 void HWNewNet::onTurnTimeChanged(quint32 time) |
462 { |
462 { |
463 RawSendNet(QString("CONFIG_PARAM%1TURNTIME%1%2").arg(delimeter).arg(time)); |
463 if (isChief) RawSendNet(QString("CONFIG_PARAM%1TURNTIME%1%2").arg(delimeter).arg(time)); |
464 } |
464 } |
465 |
465 |
466 void HWNewNet::onFortsModeChanged(bool value) |
466 void HWNewNet::onFortsModeChanged(bool value) |
467 { |
467 { |
468 RawSendNet(QString("CONFIG_PARAM%1FORTSMODE%1%2").arg(delimeter).arg(value)); |
468 if (isChief) RawSendNet(QString("CONFIG_PARAM%1FORTSMODE%1%2").arg(delimeter).arg(value)); |
469 } |
469 } |
470 |
470 |
471 void HWNewNet::onWeaponsNameChanged(const QString& name, const QString& ammo) |
471 void HWNewNet::onWeaponsNameChanged(const QString& name, const QString& ammo) |
472 { |
472 { |
473 RawSendNet(QString("CONFIG_PARAM%1AMMO%1%2%1%3").arg(delimeter).arg(ammo).arg(name)); |
473 if (isChief) RawSendNet(QString("CONFIG_PARAM%1AMMO%1%2%1%3").arg(delimeter).arg(ammo).arg(name)); |
474 } |
474 } |
475 |
475 |
476 void HWNewNet::chatLineToNet(const QString& str) |
476 void HWNewNet::chatLineToNet(const QString& str) |
477 { |
477 { |
478 if(str!="") { |
478 if(str!="") { |