Merge branch 'main' into pr/1107

This commit is contained in:
David Markowitz
2023-07-21 19:40:30 -07:00
59 changed files with 194 additions and 211 deletions

View File

@@ -393,7 +393,7 @@ void BaseWavesServer::GameWon(Entity* self) {
// Done
void BaseWavesServer::SpawnNow(const std::string& spawnerName, uint32_t amount, LOT spawnLot) {
const auto spawners = dZoneManager::Instance()->GetSpawnersByName(spawnerName);
const auto spawners = Game::zoneManager->GetSpawnersByName(spawnerName);
for (auto* spawner : spawners) {
if (spawnLot != LOT_NULL) {
spawner->SetSpawnLot(spawnLot);
@@ -582,7 +582,7 @@ void BaseWavesServer::UpdateMissionForAllPlayers(Entity* self, uint32_t missionI
void BaseWavesServer::ClearSpawners() {
for (const auto& spawnerName : spawners) {
const auto spawnerObjects = dZoneManager::Instance()->GetSpawnersByName(spawnerName);
const auto spawnerObjects = Game::zoneManager->GetSpawnersByName(spawnerName);
for (auto* spawnerObject : spawnerObjects) {
spawnerObject->Reset();