瀏覽代碼

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

Image 4 年之前
父節點
當前提交
f1c2955003
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;