Skip to content

Commit

Permalink
missionResetDroids: Update visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Jun 28, 2024
1 parent 17b5ebf commit aace08b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/mission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1567,6 +1567,14 @@ static void missionResetDroids()
{
vanishDroid(d);
}
else
{
if (d->pos.x != INVALID_XY && d->pos.y != INVALID_XY)
{
// update visibility
visTilesUpdate(d);
}
}
return IterationResult::CONTINUE_ITERATION;
});
}
Expand Down Expand Up @@ -1663,6 +1671,9 @@ static void missionResetDroids()
}
// Reset the selected flag
psDroid->selected = false;

// update visibility
visTilesUpdate(psDroid);
}
else
{
Expand Down

0 comments on commit aace08b

Please sign in to comment.