Rename commonCommands to numberCommands
This commit is contained in:
parent
c3e8a25e9e
commit
1922522009
|
@ -97,7 +97,7 @@ Gui::Gui(){
|
|||
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s] START\n",__FILE__,__FUNCTION__);
|
||||
|
||||
lastGroupRecall = -1;
|
||||
commonCommands=0;
|
||||
numberCommands=0;
|
||||
posObjWorld= Vec2i(54, 14);
|
||||
validPosObjWorld= false;
|
||||
activeCommandType= NULL;
|
||||
|
@ -456,7 +456,7 @@ void Gui::hotKey(SDL_KeyboardEvent key) {
|
|||
mouseDownDisplayUnitBuild(i);
|
||||
break;
|
||||
} else {
|
||||
if (i < commonCommands) mouseDownDisplayUnitSkills(i);
|
||||
if (i < numberCommands) mouseDownDisplayUnitSkills(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -1030,7 +1030,7 @@ void Gui::computeDisplay(){
|
|||
}
|
||||
}
|
||||
}
|
||||
commonCommands = i;
|
||||
numberCommands = i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1060,7 +1060,7 @@ void Gui::computeDisplay(){
|
|||
lastCommand++;
|
||||
}
|
||||
}
|
||||
commonCommands = lastCommand;
|
||||
numberCommands = lastCommand;
|
||||
}
|
||||
}
|
||||
else if (activeCommandType != NULL && activeCommandType->getClass() == ccBuild) {
|
||||
|
|
|
@ -124,7 +124,7 @@ private:
|
|||
CommandClass activeCommandClass;
|
||||
int activePos;
|
||||
int lastPosDisplay;
|
||||
int commonCommands;
|
||||
int numberCommands;
|
||||
|
||||
//composite
|
||||
Display display;
|
||||
|
|
Loading…
Reference in New Issue