mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
Players no longer respawn if they were alive at the end of Battle of Nimbus Station (#1017)
This commit is contained in:
parent
a532bc15d8
commit
137a5e5c3d
@ -1,6 +1,8 @@
|
||||
#pragma once
|
||||
#include "BaseWavesServer.h"
|
||||
|
||||
#include "dCommonVars.h"
|
||||
|
||||
enum SpawnerName {
|
||||
interior_A,
|
||||
interior_B,
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user