mirror of
https://github.com/glest/glest-source.git
synced 2025-08-27 09:54:26 +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.
|
// or when the unit is selected and right clicked to a position.
|
||||||
if (commandType == NULL) {
|
if (commandType == NULL) {
|
||||||
CommandClass command = ccMove; //default command
|
CommandClass command = ccMove; //default command
|
||||||
if (!isMove && defaultActionAttack) {
|
if (!isMove && (preferAttack || defaultActionAttack)) {
|
||||||
if (getType()->hasSkillClass(scAttack)) {
|
if (getType()->hasSkillClass(scAttack)) {
|
||||||
if (targetUnit == NULL || this->getTeam() != targetUnit->getTeam()) {
|
if (targetUnit == NULL || this->getTeam() != targetUnit->getTeam()) {
|
||||||
if (preferAttack || (getCurrSkill()->getClass() != scAttack && !(game->getWorld()->getUnitUpdater()->hasEnemyUnitsOnSight(this, false))))
|
if (preferAttack || (getCurrSkill()->getClass() != scAttack && !(game->getWorld()->getUnitUpdater()->hasEnemyUnitsOnSight(this, false))))
|
||||||
|
Reference in New Issue
Block a user