Kaynağa Gözat

stop NPCs from running away as dead corpses when they die

Emagi 4 ay önce
ebeveyn
işleme
3ea33e3ebe
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      EQ2/source/WorldServer/Spawn.cpp

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

@@ -2316,7 +2316,7 @@ void Spawn::InitializePosPacketData(Player* player, PacketStruct* packet, bool b
 		packet->setDataByName("pos_speed", pos_packet_speed);
 		packet->setDataByName("pos_side_speed", side_speed);
 	}
-	else if (bSendSpeed) {
+	else if (bSendSpeed && (!IsNPC() || Alive())) {
 		sint16 side_speed = GetSpeed() * speed_multiplier;
 		packet->setDataByName("pos_speed", side_speed);
 		if(side_speed != 0 && ((IsWidget() && ((Widget*)this)->GetMultiFloorLift()) || IsTransportSpawn())) {