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,11 +295,11 @@ 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
if( WallOnMap(x,y) ) {
|
||||
DebugLevel3("WALL ON TILE\n");
|
||||
|
|
Loading…
Reference in a new issue