IsAllied, didn't detect own units as allied. FIXME added.
This commit is contained in:
parent
71073bf648
commit
9807f1bd17
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue