This commit is contained in:
Yunfan Li
2023-08-25 15:02:50 +08:00
parent e094b63901
commit 8bd0441755
2 changed files with 12 additions and 8 deletions

View File

@@ -43,7 +43,7 @@ WorldLocation ArrowFormation::GetLocationInternal()
float x = master->GetPositionX() - masterUnit->GetX() + botUnit->GetX();
float y = master->GetPositionY() - masterUnit->GetY() + botUnit->GetY();
float z = master->GetPositionZ() + 5.0f;
float z = master->GetPositionZ();
float ground = master->GetMap()->GetHeight(x, y, z + 0.5f);
if (ground <= INVALID_HEIGHT)