fix: mech build not showing up (#1996)

tested that the mech build, the fv rock build, and the frakjaw builds (to get to the instancer) all function as intented
This commit is contained in:
David Markowitz
2026-06-15 00:20:43 -07:00
committed by GitHub
parent 0101933f5c
commit 7937951f7f

View File

@@ -1615,23 +1615,8 @@ void Entity::Kill(Entity* murderer, const eKillType killType) {
const auto& grpNameQBShowBricks = GetVarAsString(u"grpNameQBShowBricks");
if (!grpNameQBShowBricks.empty()) {
auto spawners = Game::zoneManager->GetSpawnersByName(grpNameQBShowBricks);
Spawner* spawner = nullptr;
if (!spawners.empty()) {
spawner = spawners[0];
} else {
spawners = Game::zoneManager->GetSpawnersInGroup(grpNameQBShowBricks);
if (!spawners.empty()) {
spawner = spawners[0];
}
}
if (spawner != nullptr) {
spawner->Spawn();
}
for (auto* const spawner : Game::zoneManager->GetSpawnersByName(grpNameQBShowBricks)) if (spawner) spawner->Spawn();
for (auto* const spawner : Game::zoneManager->GetSpawnersInGroup(grpNameQBShowBricks)) if (spawner) spawner->Spawn();
}
// Track a player being smashed