- only show queued # in text if queued commandcount > 1
This commit is contained in:
parent
3ed7d242d9
commit
5ef1313296
|
@ -1476,8 +1476,12 @@ string Unit::getDesc() const {
|
||||||
Commands::const_iterator it= commands.begin();
|
Commands::const_iterator it= commands.begin();
|
||||||
for(unsigned int i = 0; i < min((size_t)maxQueuedCommandDisplayCount,commands.size()); ++i) {
|
for(unsigned int i = 0; i < min((size_t)maxQueuedCommandDisplayCount,commands.size()); ++i) {
|
||||||
const CommandType *ct = (*it)->getCommandType();
|
const CommandType *ct = (*it)->getCommandType();
|
||||||
//str += "\n" + ct->getDesc(this->getTotalUpgrade());
|
if(commands.size() == 1) {
|
||||||
str += "\n#" + intToStr(i+1) + " " + ct->getName();
|
str += "\n" + ct->getName();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
str += "\n#" + intToStr(i+1) + " " + ct->getName();
|
||||||
|
}
|
||||||
it++;
|
it++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue