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 15, 2024
1 parent 9008a3b commit e8530d5
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 e8530d5

Please sign in to comment.