shield distance testcommit

floating-point
David Dormagen 2010-09-25 02:03:19 +02:00
parent b55fd1ccd0
commit cff7d52a6e
1 changed files with 1 additions and 0 deletions

View File

@ -243,6 +243,7 @@ func FxShieldStopControlQueryCatchBlow(target, effect_number, object obj)
var posY=-Cos(angle, 12);
var object_angle=Angle(0, 0, obj->GetXDir(), obj->GetYDir());
if(Distance(GetX()+posX, GetY()+posY, obj->GetX(), obj->GetY()) > 7) return false;
target->Message(Format("%d", Distance(GetX()+posX, GetY()+posY, obj->GetX(), obj->GetY())));
if(AngleInside(angle, object_angle, 45)) return false;
/*var xd=obj->GetXDir();