better movement

This commit is contained in:
Yunfan Li
2023-09-05 00:12:48 +08:00
parent 0c3b5805cf
commit 1aaa1f8507
4 changed files with 31 additions and 28 deletions

View File

@@ -44,8 +44,8 @@ WorldLocation ArrowFormation::GetLocationInternal()
float x = master->GetPositionX() - masterUnit->GetX() + botUnit->GetX();
float y = master->GetPositionY() - masterUnit->GetY() + botUnit->GetY();
float z = master->GetPositionZ();
float ground = master->GetMap()->GetHeight(x, y, z + 0.5f);
float ground = master->GetMap()->GetHeight(x, y, z + 30.0f);
if (ground <= INVALID_HEIGHT)
return Formation::NullLocation;
// master->UpdateGroundPositionZ(x, y, z);