mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-17 21:08:09 +00:00
move IsDead to the DestroyableComponent
This commit is contained in:
@@ -160,7 +160,7 @@ void GameMessageHandler::HandleMessage(RakNet::BitStream& inStream, const System
|
||||
}
|
||||
|
||||
//Kill player if health == 0
|
||||
if (entity->GetIsDead()) {
|
||||
if (entity->GetComponent<DestroyableComponent>()->GetIsDead()) {
|
||||
entity->Smash(entity->GetObjectID());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user