Bläddra i källkod

stop NPCs from running away as dead corpses when they die

Emagi 4 månader sedan
förälder
incheckning
3ea33e3ebe
1 ändrade filer med 1 tillägg och 1 borttagningar
  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())) {