*The Author of r1583 is AlexDereka.

--HG--
branch : trunk
This commit is contained in:
D_Skywalk
2009-06-19 13:03:22 +02:00
parent d9c8770d45
commit 831320565e
+10 -10
View File
@@ -5526,19 +5526,19 @@ void Spell::EffectMomentMove(uint32 i)
int j = 0; int j = 0;
for(j; j<10 ;j++) for(j; j<10 ;j++)
{ {
if(fabs(z - destz) > 6) if(fabs(z - destz) > 6)
{ {
destx -= step * cos(orientation); destx -= step * cos(orientation);
desty -= step * sin(orientation); desty -= step * sin(orientation);
ground = unitTarget->GetMap()->GetHeight(destx,desty,MAX_HEIGHT,true); ground = unitTarget->GetMap()->GetHeight(destx,desty,MAX_HEIGHT,true);
floor = unitTarget->GetMap()->GetHeight(destx,desty,z, true); floor = unitTarget->GetMap()->GetHeight(destx,desty,z, true);
destz = fabs(ground - z) <= fabs(floor - z) ? ground:floor; destz = fabs(ground - z) <= fabs(floor - z) ? ground:floor;
}else }else
break; break;
} }
if(j == 9) if(j == 9)
{ {
return; return;
} }
if(unitTarget->GetTypeId() == TYPEID_PLAYER) if(unitTarget->GetTypeId() == TYPEID_PLAYER)