浏览代码

stop NPCs from running away as dead corpses when they die

Emagi 5 月之前
父节点
当前提交
3ea33e3ebe
共有 1 个文件被更改,包括 1 次插入1 次删除
  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())) {