Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a2e690d

Browse files
cppcoopermyk002
authored andcommitted
Re-adds removed lines to diggingInvaders.cpp
1 parent 2b8024e commit a2e690d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

plugins/diggingInvaders/diggingInvaders.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,9 @@ void findAndAssignInvasionJob(color_ostream& out, void* tickTime) {
373373
return;
374374
}
375375

376+
//this line is actually redundant now: EventManager::unregister(EventManager::EventType::TICK, findJobTickHandler, plugin_self);
377+
EventManager::registerTick(findJobTickHandler, 1, plugin_self);
378+
376379
if ( fringe.empty() ) {
377380
df::unit* lastDigger = df::unit::find(lastInvasionDigger);
378381
if ( lastDigger && lastDigger->job.current_job && lastDigger->job.current_job->id == lastInvasionJob ) {

0 commit comments

Comments
 (0)