minor bug fix

This commit is contained in:
Pan 2021-11-12 22:27:58 +13:00
parent 50647a044d
commit 5678e7bd6f
2 changed files with 3 additions and 4 deletions

View File

@ -260,13 +260,13 @@ public class AssetManager {
//harvester l = new harvester(new vector(i*0.25f+ 1.125f,-0.3f, 17.375f - 0.25f*j), 90, 0); //harvester l = new harvester(new vector(i*0.25f+ 1.125f,-0.3f, 17.375f - 0.25f*j), 90, 0);
//addHarvester(l); //addHarvester(l);
//l.hasMultiShotUpgrade = true; //l.hasMultiShotUpgrade = true;
//lightTank l = new lightTank(new vector(i*0.25f + 27.125f,-0.3f, 0.5f + 26.625f + j*0.25f), 90, 0); lightTank l = new lightTank(new vector(i*0.25f + 27.125f,-0.3f, 0.5f + 26.625f + j*0.25f), 90, 0);
//l.attackRange = 1.99f; //l.attackRange = 1.99f;
//lightTank.tileCheckList_player = lightTank.generateTileCheckList(6); //lightTank.tileCheckList_player = lightTank.generateTileCheckList(6);
//addLightTank(l); addLightTank(l);
//if(j == 0 && i == 0) //if(j == 0 && i == 0)
//addMissileTurret(new missileTurret(i*0.25f -0.125f + 1, -0.65f, 0.25f + 17.125f + j*0.25f, 0)); //addMissileTurret(new missileTurret(i*0.25f -0.125f + 1, -0.65f, 0.25f + 17.125f + j*0.25f, 0));

View File

@ -234,9 +234,8 @@ public class playerCommander {
//if the click lands on empty ground perform "attack move" for all selected unit //if the click lands on empty ground perform "attack move" for all selected unit
//if the click lands on an unit, then attack that unit regardless if it is friend or foe //if the click lands on an unit, then attack that unit regardless if it is friend or foe
boolean performAttack = false; boolean performAttack = false;
if(numberOfSelectedUnits > 1){ if(numberOfSelectedUnits > 0){
performAttack = true; performAttack = true;
} }