mirror of
https://github.com/glest/glest-source.git
synced 2025-08-24 08:52:49 +02:00
Now you can micro-manage using right-click and middle-click
This commit is contained in:
@@ -2746,7 +2746,7 @@ namespace Game {
|
||||
// or when the unit is selected and right clicked to a position.
|
||||
if (commandType == NULL) {
|
||||
CommandClass command = ccMove; //default command
|
||||
if (!isMove && defaultActionAttack) {
|
||||
if (!isMove && (preferAttack || defaultActionAttack)) {
|
||||
if (getType()->hasSkillClass(scAttack)) {
|
||||
if (targetUnit == NULL || this->getTeam() != targetUnit->getTeam()) {
|
||||
if (preferAttack || (getCurrSkill()->getClass() != scAttack && !(game->getWorld()->getUnitUpdater()->hasEnemyUnitsOnSight(this, false))))
|
||||
|
Reference in New Issue
Block a user