The shooting Gallery now properly ends when a player leaves the instance

The shooting Gallery now properly ends when a player leaves the instance

Frakjaw player update

Update the Frakjaw battle instance script to remove players when they leave the instance

Simplify comparison

Simplify comparison for entity pointer to be implicit
This commit is contained in:
EmosewaMC
2022-06-19 00:44:49 -07:00
parent c871aeef56
commit 968114199b
3 changed files with 25 additions and 6 deletions

View File

@@ -226,7 +226,7 @@ void EntityManager::UpdateEntities(const float deltaTime) {
const auto& ghostingToDelete = std::find(m_EntitiesToGhost.begin(), m_EntitiesToGhost.end(), entityToDelete);
if (entityToDelete != nullptr)
if (entityToDelete)
{
// If we are a player run through the player destructor.
if (entityToDelete->IsPlayer())