Fixed bug: Right click attacks neutral units, now units attacks/moves to the field.

This commit is contained in:
johns 2000-06-29 23:25:23 +00:00
parent 8af3ed05b0
commit 41c11818cb

View file

@ -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");