autoSyndrome: stop spam, and disable by default

develop
jj 2013-03-16 13:20:36 +01:00
parent 101ab2b301
commit ffa9c50486
2 changed files with 5 additions and 1 deletions

@ -4,6 +4,7 @@ DFHack future
- masspit: designate caged creatures in a zone for pitting
Misc improvements:
- exterminate: renamed from slayrace, add help message
- autoSyndrome: disable by default
DFHack v0.34.11-r3

@ -98,7 +98,7 @@ reaction_duck
Next, start a new fort in a new world, build a duck workshop, then have someone become a duck.
*/
bool enabled = true;
bool enabled = false;
DFHACK_PLUGIN("autoSyndrome");
@ -279,6 +279,9 @@ void processJob(color_ostream& out, void* jobPtr) {
}
}
if ( workerId == -1 )
return;
int32_t workerIndex = df::unit::binsearch_index(df::global::world->units.all, workerId);
if ( workerIndex < 0 ) {
out.print("%s line %d: Couldn't find unit %d.\n", __FILE__, __LINE__, workerId);