Pārlūkot izejas kodu

Had IsFlying as a true statement should be false (we set grid when mob is not flying)

Image 4 gadi atpakaļ
vecāks
revīzija
a024c4f408
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      EQ2/source/WorldServer/Spawn.cpp

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

@@ -2504,7 +2504,7 @@ bool Spawn::CalculateChange(){
 				}
 
 				int32 newGrid = GetZone()->Grid->GetGridID(this);
-				if (IsFlying() && newGrid != 0 && newGrid != appearance.pos.grid_id)
+				if (!IsFlying() && newGrid != 0 && newGrid != appearance.pos.grid_id)
 					SetPos(&(appearance.pos.grid_id), newGrid);
 			}
 		}