mirror of
https://github.com/glest/glest-source.git
synced 2025-08-30 11:19:48 +02:00
Respecting requirements for attack commands . ( Bug fix for attack hot-key cycling through attacks. )
This commit is contained in:
@@ -627,8 +627,10 @@ void Gui::mouseDownDisplayUnitSkills(int posDisplay) {
|
||||
const CommandType *ctype=display.getCommandType(k);
|
||||
if(ctype->getClass() == ccAttack)
|
||||
{
|
||||
posDisplay=k;
|
||||
break;
|
||||
if(ctype != NULL && unit->getFaction()->reqsOk(ctype)) {
|
||||
posDisplay=k;
|
||||
break;
|
||||
}
|
||||
}
|
||||
k++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user