Re-adds removed lines to diggingInvaders.cpp

develop
Josh Cooper 2021-08-28 12:41:50 -07:00 committed by Myk
parent 2b8024e62f
commit a2e690d5d9
1 changed files with 3 additions and 0 deletions

@ -373,6 +373,9 @@ void findAndAssignInvasionJob(color_ostream& out, void* tickTime) {
return;
}
//this line is actually redundant now: EventManager::unregister(EventManager::EventType::TICK, findJobTickHandler, plugin_self);
EventManager::registerTick(findJobTickHandler, 1, plugin_self);
if ( fringe.empty() ) {
df::unit* lastDigger = df::unit::find(lastInvasionDigger);
if ( lastDigger && lastDigger->job.current_job && lastDigger->job.current_job->id == lastInvasionJob ) {