Players no longer respawn if they were alive at the end of Battle of Nimbus Station (#1017)

This commit is contained in:
David Markowitz 2023-03-12 07:21:27 -07:00 committed by GitHub
parent a532bc15d8
commit 137a5e5c3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
#pragma once
#include "BaseWavesServer.h"
#include "dCommonVars.h"
enum SpawnerName {
interior_A,
interior_B,

View File

@ -430,7 +430,7 @@ void BaseWavesServer::SpawnWave(Entity* self) {
for (const auto& playerID : state.players) {
auto* player = EntityManager::Instance()->GetEntity(playerID);
if (player != nullptr) {
if (player && player->GetIsDead()) {
player->Resurrect();
}
}