fix: reset command position for build commands
This commit is contained in:
parent
ea3ede3c08
commit
aec7bf5c80
|
@ -673,9 +673,12 @@ void Gui::mouseDownDisplayUnitSkills(int posDisplay) {
|
||||||
if (activeCommandClass == ccAttack) {
|
if (activeCommandClass == ccAttack) {
|
||||||
ct = selection.getUnitFromCC(ccAttack)->getType()->getFirstCtOfClass(activeCommandClass);
|
ct = selection.getUnitFromCC(ccAttack)->getType()->getFirstCtOfClass(activeCommandClass);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(activeCommandType!=NULL && activeCommandType->getClass()==ccBuild){
|
if(activeCommandType!=NULL && activeCommandType->getClass()==ccBuild){
|
||||||
assert(selection.isUniform());
|
assert(selection.isUniform());
|
||||||
selectingBuilding= true;
|
selectingBuilding= true;
|
||||||
|
selectingPos= false;
|
||||||
|
activePos= invalidPos;
|
||||||
}
|
}
|
||||||
else if(ct->getClicks()==cOne){
|
else if(ct->getClicks()==cOne){
|
||||||
invalidatePosObjWorld();
|
invalidatePosObjWorld();
|
||||||
|
|
Loading…
Reference in New Issue