Adds immediate migration results

This commit is contained in:
torsten committed 2026-08-18 22:12:24 +02:00
1 parent ba4121728b
commit 6a2a0667ab
2395 files changed
+357322 -2524

No files matched your search

@@ -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)