Page 1 of 1

FriendCloseYds() Bug

Posted: Tue Jan 26, 2016 9:58 pm
by Marching Thru Georgia
FriendCloseYds() always returns a value of 1 no matter how far away are the friendly units.

Re: FriendCloseYds() Bug

Posted: Wed Jan 27, 2016 11:17 pm
by mitra76
Yes I know, it is probably a effect of integer from map internal dimension to yards. Is better anyway use friendbeg with friendnext loop in order to filter only the friends really interesting, anyway the check is done at short distance is less heavy that targetbeg

Re: FriendCloseYds() Bug

Posted: Thu Jan 28, 2016 12:45 am
by Marching Thru Georgia
It would be in your interests to fix it since you use it in several places within the dll. I'd suggest modifying it to FriendCloseYds(int maxDist), to find the distance to the closest friend within maxDist yd. radius.

Re: FriendCloseYds() Bug

Posted: Fri Jan 29, 2016 1:59 am
by mitra76
sure, is already signaled