mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +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
|
#pragma once
|
||||||
#include "BaseWavesServer.h"
|
#include "BaseWavesServer.h"
|
||||||
|
|
||||||
|
#include "dCommonVars.h"
|
||||||
|
|
||||||
enum SpawnerName {
|
enum SpawnerName {
|
||||||
interior_A,
|
interior_A,
|
||||||
interior_B,
|
interior_B,
|
||||||
|
@ -430,7 +430,7 @@ void BaseWavesServer::SpawnWave(Entity* self) {
|
|||||||
|
|
||||||
for (const auto& playerID : state.players) {
|
for (const auto& playerID : state.players) {
|
||||||
auto* player = EntityManager::Instance()->GetEntity(playerID);
|
auto* player = EntityManager::Instance()->GetEntity(playerID);
|
||||||
if (player != nullptr) {
|
if (player && player->GetIsDead()) {
|
||||||
player->Resurrect();
|
player->Resurrect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user