mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-06-18 20:54:20 +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");
|
const auto& grpNameQBShowBricks = GetVarAsString(u"grpNameQBShowBricks");
|
||||||
if (!grpNameQBShowBricks.empty()) {
|
if (!grpNameQBShowBricks.empty()) {
|
||||||
auto spawners = Game::zoneManager->GetSpawnersByName(grpNameQBShowBricks);
|
for (auto* const spawner : Game::zoneManager->GetSpawnersByName(grpNameQBShowBricks)) if (spawner) spawner->Spawn();
|
||||||
|
for (auto* const spawner : Game::zoneManager->GetSpawnersInGroup(grpNameQBShowBricks)) if (spawner) spawner->Spawn();
|
||||||
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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Track a player being smashed
|
// Track a player being smashed
|
||||||
|
|||||||
Reference in New Issue
Block a user