Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
+4
-3
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
#include "main_handler.h"
|
||||
#include <utility>
|
||||
#include <QWebSocket>
|
||||
#include "VWM/vwm_types.h"
|
||||
#include "bcu_xml_reader.h"
|
||||
@@ -180,7 +181,7 @@ void MainHandler::onHitResult(const HitResult &result, const QMap<int, Contamina
|
||||
|
||||
if (playSound)
|
||||
{
|
||||
for (HandelEffects *he : qAsConst(m_handelEffectsVec))
|
||||
for (HandelEffects *he : std::as_const(m_handelEffectsVec))
|
||||
{
|
||||
DEBUG_LOG(m_logger) << "playHitSound @EGCU " << he->hostname() << ", SoundId: " << result.effectSoundId;
|
||||
he->playHitSound(result.effectSoundId);
|
||||
@@ -252,7 +253,7 @@ void MainHandler::onSetEffectStatesRequest(const QString &hostname, const QVecto
|
||||
}
|
||||
return;
|
||||
}
|
||||
for (HandelEffects* hes : qAsConst(m_handelEffectsVec))
|
||||
for (HandelEffects* hes : std::as_const(m_handelEffectsVec))
|
||||
{
|
||||
if (hes->hostname() != hostname)
|
||||
continue;
|
||||
@@ -309,7 +310,7 @@ QVector<int> MainHandler::getSegmentDamage(const QVector<HitRoom> &allHitRooms,
|
||||
return result;
|
||||
result.reserve(m_egcuConfig.egcus.size());
|
||||
|
||||
for (const Egcu &egcu : qAsConst(m_egcuConfig.egcus))
|
||||
for (const Egcu &egcu : std::as_const(m_egcuConfig.egcus))
|
||||
{
|
||||
int damagePercentSegment = 0;
|
||||
for (const HitRoom &hr : allHitRooms)
|
||||
|
||||
Reference in new issue
Block a user