Parcourir la source

Fix for chests and other spawns/widgets/objects having HP of 0 showing up as corpses

Image il y a 4 ans
Parent
commit
f1c2955003
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      EQ2/source/WorldServer/Spawn.cpp

+ 1 - 1
EQ2/source/WorldServer/Spawn.cpp

@@ -2025,7 +2025,7 @@ void Spawn::InitializeInfoPacketData(Player* spawn, PacketStruct* packet){
 
 	int32 temp_activity_status = 0;
 	
-	if (!Alive() && !IsObject() && !IsGroundSpawn())
+	if (!Alive() && GetTotalHP() > 0 && !IsObject() && !IsGroundSpawn())
 		temp_activity_status = 1;
 
 	temp_activity_status += (IsNPC() || IsObject() || IsGroundSpawn()) ? 1 << 1 : 0;