fix: reset command position for build commands

This commit is contained in:
pavanvo 2022-08-16 21:59:41 +04:00
parent ea3ede3c08
commit aec7bf5c80
No known key found for this signature in database
GPG Key ID: 34C1C36681B4AD84
1 changed files with 3 additions and 0 deletions

View File

@ -673,9 +673,12 @@ void Gui::mouseDownDisplayUnitSkills(int posDisplay) {
if (activeCommandClass == ccAttack) {
ct = selection.getUnitFromCC(ccAttack)->getType()->getFirstCtOfClass(activeCommandClass);
}
if(activeCommandType!=NULL && activeCommandType->getClass()==ccBuild){
assert(selection.isUniform());
selectingBuilding= true;
selectingPos= false;
activePos= invalidPos;
}
else if(ct->getClicks()==cOne){
invalidatePosObjWorld();