Reduced verbosity.

develop
Raoul XQ 2011-04-12 13:51:20 +02:00
parent bb80b246d1
commit d10d8316e7
1 changed files with 7 additions and 19 deletions

@ -670,26 +670,18 @@ int main (int argc, const char* argv[])
if (remove_labors) { if (remove_labors) {
cout << "Removing labors..." << endl; cout << "Removing labors..." << endl;
for(unsigned int lab = 0; lab < NUM_CREATURE_LABORS; lab++) { for(unsigned int lab = 0; lab < NUM_CREATURE_LABORS; lab++) {
if (creature.labors[lab])
{
cout << "Removing labor " << int(hauler_labors[lab]) << "..." << endl;
creature.labors[lab] = 0; creature.labors[lab] = 0;
} }
} }
}
if (remove_hauler) { if (remove_hauler) {
for (int labs=0; for (int labs=0;
labs < sizeof(hauler_labors)/sizeof(hauler_labors[0]); labs < sizeof(hauler_labors)/sizeof(hauler_labors[0]);
labs++) labs++)
{ {
if (creature.labors[hauler_labors[labs]])
{
cout << "Removing labor " << int(hauler_labors[labs]) << "..." << endl;
creature.labors[hauler_labors[labs]] = 0; creature.labors[hauler_labors[labs]] = 0;
} }
} }
}
if (make_hauler) { if (make_hauler) {
cout << "Setting hauler labors..." << endl; cout << "Setting hauler labors..." << endl;
@ -697,13 +689,9 @@ int main (int argc, const char* argv[])
labs < sizeof(hauler_labors)/sizeof(hauler_labors[0]); labs < sizeof(hauler_labors)/sizeof(hauler_labors[0]);
labs++) labs++)
{ {
if (creature.labors[hauler_labors[labs]] == 0)
{
cout << "Adding labor " << int(hauler_labors[labs]) << "..." << endl;
creature.labors[hauler_labors[labs]] = 1; creature.labors[hauler_labors[labs]] = 1;
} }
} }
}
if (Creatures->WriteLabors(creature_idx, creature.labors) == true) { if (Creatures->WriteLabors(creature_idx, creature.labors) == true) {
cout << "Success writing labors." << endl; cout << "Success writing labors." << endl;
} else { } else {