Explorar o código

Fixed objects being forced to Z ground (we want objects to be able to sit on other objects)

In support of issue #124
Image %!s(int64=4) %!d(string=hai) anos
pai
achega
002e913927
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      EQ2/source/WorldServer/Spawn.cpp

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

@@ -3154,7 +3154,7 @@ float Spawn::GetFixedZ(const glm::vec3& destination, int32 z_find_offset) {
 
 
 void Spawn::FixZ(bool forceUpdate) {
-	if (IsPlayer() || IsFlying()) {
+	if (IsPlayer() || IsFlying() || (IsObject() && GetZone()->GetInstanceType() == Instance_Type::PERSONAL_HOUSE_INSTANCE)) {
 		return;
 	}
 	/*