mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-06-16 11:44:22 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user