Added missing z-value in Formations.

--HG--
branch : trunk
This commit is contained in:
TrullyONE
2009-04-09 01:01:57 +03:00
parent f3cc13d28c
commit d6be48326f
+6 -1
View File
@@ -245,7 +245,12 @@ void CreatureGroup::LeaderMoveTo(float x, float y, float z)
float dx = x + cos(angle + pathangle) * dist; float dx = x + cos(angle + pathangle) * dist;
float dy = y + sin(angle + pathangle) * dist; float dy = y + sin(angle + pathangle) * dist;
float dz;
Trinity::NormalizeMapCoord(dx);
Trinity::NormalizeMapCoord(dy);
float dz = member->GetMap()->GetHeight(dx,dy,z,false);
member->UpdateGroundPositionZ(dx, dy, dz); member->UpdateGroundPositionZ(dx, dy, dz);
if(member->GetDistance(m_leader) < dist + MAX_DESYNC) if(member->GetDistance(m_leader) < dist + MAX_DESYNC)