1
0
forked from 0ad/0ad

Simplify formatBatchTrainingString function a bit: remove always true condition/unreachable code. Refs #1432

This was SVN commit r12897.
This commit is contained in:
fcxSanya 2012-11-27 15:57:45 +00:00
parent a4a060cd86
commit fdd2b92723

View File

@ -184,13 +184,9 @@ function formatBatchTrainingString(buildingsCountToTrainFullBatch, fullBatchSize
if (buildingsCountToTrainFullBatch > 1 ||
(buildingsCountToTrainFullBatch == 1 && remainderBatch > 0))
{
batchDetailsString += " (";
if (fullBatchesString != "" && remainderBatchString != "")
batchDetailsString += fullBatchesString + " + " + remainderBatchString;
else if (fullBatchesString != "")
batchDetailsString += fullBatchesString;
else
batchDetailsString += remainderBatchString;
batchDetailsString += " (" + fullBatchesString;
if (remainderBatchString != "")
batchDetailsString += " + " + remainderBatchString;
batchDetailsString += ")";
}