FriendCloseYds() Bug
-
- Reactions:
- Posts: 1769
- Joined: Mon Mar 29, 2010 9:56 pm
FriendCloseYds() Bug
FriendCloseYds() always returns a value of 1 no matter how far away are the friendly units.
I can make this march and I will make Georgia howl.
Re: FriendCloseYds() Bug
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
Visit my wargames blog: http://warforgame.blogspot.it/
-
- Reactions:
- Posts: 1769
- Joined: Mon Mar 29, 2010 9:56 pm
Re: FriendCloseYds() Bug
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.
I can make this march and I will make Georgia howl.
Re: FriendCloseYds() Bug
sure, is already signaled
Visit my wargames blog: http://warforgame.blogspot.it/