From 079013d7a29da2e6835ea9b91325e06543f50338 Mon Sep 17 00:00:00 2001 From: Gexo91 Date: Tue, 6 Oct 2026 23:47:31 +0300 Subject: [PATCH] Fix account namespace and deferred housing area-trigger creation --- .github/workflows/windows-build.yml | 2 +- src/server/game/Entities/Account/Account.cpp | 10 +++++----- src/server/game/Entities/AreaTrigger/AreaTrigger.cpp | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index 3f3ea81f..efd4655a 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -69,7 +69,7 @@ jobs: - name: Build Windows binaries run: | - cmake --build build --parallel 2 + cmake --build build --parallel 2 -- -k 20 if ($LASTEXITCODE -ne 0) { throw 'Windows build failed' } - name: Copy runtime dependencies and check binaries diff --git a/src/server/game/Entities/Account/Account.cpp b/src/server/game/Entities/Account/Account.cpp index 3e42d558..7e65d1ac 100644 --- a/src/server/game/Entities/Account/Account.cpp +++ b/src/server/game/Entities/Account/Account.cpp @@ -85,13 +85,13 @@ namespace Battlenet -void Account::ClearUpdateMask(bool remove) +void Battlenet::Account::ClearUpdateMask(bool remove) { m_values.ClearChangesMask(&Account::m_housingStorageData); BaseEntity::ClearUpdateMask(remove); } -void Account::SendUpdateToPlayer(Player* player) +void Battlenet::Account::SendUpdateToPlayer(Player* player) { // BaseEntity::SendUpdateToPlayer is const and skips BuildUpdateChangesMask(), // so ContentsChangedMask is 0 and the VALUES_UPDATE contains no fragment data. @@ -102,7 +102,7 @@ void Account::SendUpdateToPlayer(Player* player) ClearUpdateMask(true); } -void Account::SetHousingDecorStorageEntry(ObjectGuid decorGuid, ObjectGuid houseGuid, uint8 sourceType, std::string sourceValue, std::optional placementStatus) +void Battlenet::Account::SetHousingDecorStorageEntry(ObjectGuid decorGuid, ObjectGuid houseGuid, uint8 sourceType, std::string sourceValue, std::optional placementStatus) { auto setter = m_values.ModifyValue(&Account::m_housingStorageData).ModifyValue(&UF::HousingStorageData::Decor); // Remove before re-inserting so identical values still mark the entry changed: the client @@ -124,7 +124,7 @@ void Account::SetHousingDecorStorageEntry(ObjectGuid decorGuid, ObjectGuid house SetUpdateFieldValue(ref.ModifyValue(&UF::DecorStoragePersistedData::SourceValue), std::move(sourceValue)); } -void Account::SetHousingDecorDyeSlots(ObjectGuid decorGuid, std::array const& dyeSlots) +void Battlenet::Account::SetHousingDecorDyeSlots(ObjectGuid decorGuid, std::array const& dyeSlots) { auto ref = m_values.ModifyValue(&Account::m_housingStorageData).ModifyValue(&UF::HousingStorageData::Decor, decorGuid); if (std::ranges::any_of(dyeSlots, [](uint32 dye) { return dye != 0; })) @@ -134,7 +134,7 @@ void Account::SetHousingDecorDyeSlots(ObjectGuid decorGuid, std::arrayGetGUID() : ObjectGuid::Empty; _aurEff = aurEff; @@ -324,7 +324,7 @@ bool AreaTrigger::Create(AreaTriggerCreatePropertiesId areaTriggerCreateProperti UpdateShape(); - if (!IsStaticSpawn()) + if (!IsStaticSpawn() && addToMap) { if (!GetMap()->AddToMap(this)) {