equal
deleted
inserted
replaced
383 } |
383 } |
384 if (lst[1] == "FORTSMODE") { |
384 if (lst[1] == "FORTSMODE") { |
385 emit fortsModeChanged(lst[2].toInt() != 0); |
385 emit fortsModeChanged(lst[2].toInt() != 0); |
386 return; |
386 return; |
387 } |
387 } |
|
388 if (lst[1] == "DIVIDETEAMS") { |
|
389 emit teamsDivideChanged(lst[2].toInt() != 0); |
|
390 return; |
|
391 } |
388 if (lst[1] == "AMMO") { |
392 if (lst[1] == "AMMO") { |
389 if(lst.size() < 4) return; |
393 if(lst.size() < 4) return; |
390 emit ammoChanged(lst[3], lst[2]); |
394 emit ammoChanged(lst[3], lst[2]); |
391 return; |
395 return; |
392 } |
396 } |
484 void HWNewNet::onThemeChanged(const QString & theme) |
488 void HWNewNet::onThemeChanged(const QString & theme) |
485 { |
489 { |
486 if (isChief) RawSendNet(QString("CONFIG_PARAM%1THEME%1%2").arg(delimeter).arg(theme)); |
490 if (isChief) RawSendNet(QString("CONFIG_PARAM%1THEME%1%2").arg(delimeter).arg(theme)); |
487 } |
491 } |
488 |
492 |
489 void HWNewNet::onInitHealthChanged(quint32 health) |
493 void HWNewNet::onInitHealthChanged(int health) |
490 { |
494 { |
491 if (isChief) RawSendNet(QString("CONFIG_PARAM%1HEALTH%1%2").arg(delimeter).arg(health)); |
495 if (isChief) RawSendNet(QString("CONFIG_PARAM%1HEALTH%1%2").arg(delimeter).arg(health)); |
492 } |
496 } |
493 |
497 |
494 void HWNewNet::onTurnTimeChanged(quint32 time) |
498 void HWNewNet::onTurnTimeChanged(int time) |
495 { |
499 { |
496 if (isChief) RawSendNet(QString("CONFIG_PARAM%1TURNTIME%1%2").arg(delimeter).arg(time)); |
500 if (isChief) RawSendNet(QString("CONFIG_PARAM%1TURNTIME%1%2").arg(delimeter).arg(time)); |
497 } |
501 } |
498 |
502 |
499 void HWNewNet::onFortsModeChanged(bool value) |
503 void HWNewNet::onFortsModeChanged(bool value) |
500 { |
504 { |
501 if (isChief) RawSendNet(QString("CONFIG_PARAM%1FORTSMODE%1%2").arg(delimeter).arg(value)); |
505 if (isChief) RawSendNet(QString("CONFIG_PARAM%1FORTSMODE%1%2").arg(delimeter).arg(value)); |
|
506 } |
|
507 |
|
508 void HWNewNet::onTeamsDivideChanged(bool value) |
|
509 { |
|
510 if (isChief) RawSendNet(QString("CONFIG_PARAM%1DIVIDETEAMS%1%2").arg(delimeter).arg(value)); |
502 } |
511 } |
503 |
512 |
504 void HWNewNet::onWeaponsNameChanged(const QString& name, const QString& ammo) |
513 void HWNewNet::onWeaponsNameChanged(const QString& name, const QString& ammo) |
505 { |
514 { |
506 if (isChief) RawSendNet(QString("CONFIG_PARAM%1AMMO%1%2%1%3").arg(delimeter).arg(ammo).arg(name)); |
515 if (isChief) RawSendNet(QString("CONFIG_PARAM%1AMMO%1%2%1%3").arg(delimeter).arg(ammo).arg(name)); |