Skip to content

Commit

Permalink
Do not remove vision from transporters when loading saves
Browse files Browse the repository at this point in the history
Prevents transporters sitting in the dark if they are positioned somewhere away from other vision granting objects.
  • Loading branch information
KJeff01 committed Oct 14, 2024
1 parent 0c5b6f6 commit f331970
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5630,7 +5630,10 @@ static bool loadSaveDroid(const char *pFileName, PerPlayerDroidLists& ppsCurrent
if (psGroup->type == GT_TRANSPORTER)
{
psDroid->selected = false; // Droid should be visible in the transporter interface.
visRemoveVisibility(psDroid); // should not have visibility data when in a transporter
if (!psDroid->isTransporter())
{
visRemoveVisibility(psDroid); // should not have visibility data when in a transporter
}
}
}
else
Expand Down

0 comments on commit f331970

Please sign in to comment.