IsAllied, didn't detect own units as allied. FIXME added.

This commit is contained in:
johns 2002-03-13 22:30:27 +00:00
parent 71073bf648
commit 9807f1bd17

View file

@ -273,6 +273,7 @@ global void DoRightButton (int sx,int sy)
dest=UnitOnScreenMapPosition (sx,sy);
if( dest ) {
// FIXME: should ally to self
if( (dest->Player==ThisPlayer || IsAllied(ThisPlayer,dest))
&& dest!=unit ) {
dest->Blink=3;