Browse Source

Objects no longer have their altitude fixed so they can be put anywhere versus forced to ground

Image 2 years ago
parent
commit
d3fb28e579
1 changed files with 1 additions and 2 deletions
  1. 1 2
      EQ2/source/WorldServer/Spawn.cpp

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

@@ -3233,7 +3233,6 @@ bool Spawn::CalculateChange(){
 		}
 	
 		if (GetMap() != nullptr) {
-			Cell* newCell = GetMap()->GetGrid()->GetCell(GetX(), GetZ());
 			int32 newGrid = GetMap()->GetGrid()->GetGridID(this);
 			if ((!IsFlyingCreature() || IsTransportSpawn()) && newGrid != 0 && newGrid != appearance.pos.grid_id)
 				SetPos(&(appearance.pos.grid_id), newGrid);
@@ -3755,7 +3754,7 @@ float Spawn::GetFixedZ(const glm::vec3& destination, int32 z_find_offset) {
 
 
 void Spawn::FixZ(bool forceUpdate) {
-	if (IsPlayer() || IsFlyingCreature() || !GetZone() || (IsObject() && GetZone()->GetInstanceType() == Instance_Type::PERSONAL_HOUSE_INSTANCE)) {
+	if (IsPlayer() || IsFlyingCreature() || !GetZone() || IsObject()) {
 		return;
 	}
 	/*