Skip to content

Commit

Permalink
missionMoveTransporterOffWorld: Clear additional state
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Jun 29, 2024
1 parent 406aa37 commit 9766428
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1813,6 +1813,13 @@ void missionMoveTransporterOffWorld(DROID *psTransporter)
//stop the droid moving - the moveUpdate happens AFTER the orderUpdate and can cause problems if the droid moves from one tile to another
moveReallyStopDroid(psTransporter);

// clear targets / action targets
setDroidTarget(psTransporter, nullptr);
for (int i = 0; i < MAX_WEAPONS; i++)
{
setDroidActionTarget(psTransporter, nullptr, i);
}

//if offworld mission, then add the timer
//if (mission.type == LDS_MKEEP || mission.type == LDS_MCLEAR)
if (missionCanReEnforce() && psTransporter->player == selectedPlayer)
Expand Down

0 comments on commit 9766428

Please sign in to comment.