Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1596,9 +1596,14 @@ UpdateSleepTime DozerAIUpdate::update( void )
Bool invalidTask = FALSE;

// validate the task and the target
// TheSuperHackers @bugfix Stubbjax 16/11/2025 Invalidate the task when the build scaffold is destroyed.
if( currentTask == DOZER_TASK_REPAIR &&
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// validate the task and the target
// TheSuperHackers @bugfix Now also invalidates the task when the build scaffold is destroyed

TheActionManager->canRepairObject( getObject(), targetObject, getLastCommandSource() ) == FALSE )
invalidTask = TRUE;
#if !RETAIL_COMPATIBLE_CRC
else if (currentTask == DOZER_TASK_BUILD && targetObject == NULL)
invalidTask = TRUE;
#endif

// cancel the task if it's now invalid
if( invalidTask == TRUE )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ UpdateSleepTime WorkerAIUpdate::update( void )
if( currentTask == DOZER_TASK_REPAIR &&
TheActionManager->canRepairObject( getObject(), targetObject, getLastCommandSource() ) == FALSE )
invalidTask = TRUE;
#if !RETAIL_COMPATIBLE_CRC
else if (currentTask == DOZER_TASK_BUILD && targetObject == NULL)
invalidTask = TRUE;
#endif

// cancel the task if it's now invalid
if( invalidTask == TRUE )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1601,9 +1601,14 @@ UpdateSleepTime DozerAIUpdate::update( void )
Bool invalidTask = FALSE;

// validate the task and the target
// TheSuperHackers @bugfix Stubbjax 16/11/2025 Invalidate the task when the build scaffold is destroyed.
if( currentTask == DOZER_TASK_REPAIR &&
TheActionManager->canRepairObject( getObject(), targetObject, getLastCommandSource() ) == FALSE )
invalidTask = TRUE;
#if !RETAIL_COMPATIBLE_CRC
else if (currentTask == DOZER_TASK_BUILD && targetObject == NULL)
invalidTask = TRUE;
#endif

// cancel the task if it's now invalid
if( invalidTask == TRUE )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ UpdateSleepTime WorkerAIUpdate::update( void )
if( currentTask == DOZER_TASK_REPAIR &&
TheActionManager->canRepairObject( getObject(), targetObject, getLastCommandSource() ) == FALSE )
invalidTask = TRUE;
#if !RETAIL_COMPATIBLE_CRC
else if (currentTask == DOZER_TASK_BUILD && targetObject == NULL)
invalidTask = TRUE;
#endif

// cancel the task if it's now invalid
if( invalidTask == TRUE )
Expand Down
Loading