Fixed bug: Right click attacks neutral units, now units attacks/moves to the field.
This commit is contained in:
parent
8af3ed05b0
commit
41c11818cb
1 changed files with 2 additions and 2 deletions
|
@ -295,7 +295,7 @@ global void DoRightButton(int x,int y)
|
|||
if( dest->Player==ThisPlayer || IsAllied(ThisPlayer,dest) ) {
|
||||
SendCommandFollow(unit,dest,flush);
|
||||
continue;
|
||||
} else {
|
||||
} else if( IsEnemy(ThisPlayer,dest) ) {
|
||||
// FIXME: can I attack this unit?
|
||||
SendCommandAttack(unit,x,y,dest,flush);
|
||||
continue;
|
||||
|
|
Loading…
Add table
Reference in a new issue