FriendCloseYds() Bug

Any technical questions for Waterloo go here!
Post Reply
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

FriendCloseYds() Bug

Post by Marching Thru Georgia »

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.
mitra76
Reactions:
Posts: 933
Joined: Wed Mar 31, 2010 1:21 am

Re: FriendCloseYds() Bug

Post 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
Visit my wargames blog: http://warforgame.blogspot.it/
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re: FriendCloseYds() Bug

Post 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.
I can make this march and I will make Georgia howl.
mitra76
Reactions:
Posts: 933
Joined: Wed Mar 31, 2010 1:21 am

Re: FriendCloseYds() Bug

Post by mitra76 »

sure, is already signaled
Visit my wargames blog: http://warforgame.blogspot.it/
Post Reply