|
|
|
@ -209,9 +209,8 @@ namespace CSP {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void JobCompletedEvent(color_ostream &out, void* job_ptr) {
|
|
|
|
|
if (config.monitor_active) {
|
|
|
|
|
INFO(monitor).print("JobCompletedEvent()\n");
|
|
|
|
|
if (enabled && World::isFortressMode() && Maps::IsValid()) {
|
|
|
|
|
INFO(monitor).print("JobCompletedEvent()\n");
|
|
|
|
|
auto job = (df::job*) job_ptr;
|
|
|
|
|
// we only care if the job is a channeling one
|
|
|
|
|
if (is_dig_job(job)) {
|
|
|
|
@ -234,8 +233,6 @@ namespace CSP {
|
|
|
|
|
ChannelManager::Get().mark_done(job->pos);
|
|
|
|
|
ChannelManager::Get().manage_group(below);
|
|
|
|
|
ChannelManager::Get().debug();
|
|
|
|
|
Job::removeJob(job);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
INFO(monitor).print("JobCompletedEvent() exits\n");
|
|
|
|
|