Skip to content

Commit

Permalink
Do not process vision for remote players when they are between dungeo…
Browse files Browse the repository at this point in the history
…n levels
  • Loading branch information
StephenCWills committed Feb 14, 2025
1 parent 9bd6dc2 commit 3514e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/lighting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ void ProcessVisionList()
if (!VisionActive[id])
continue;
Light &vision = VisionList[id];
if (!player.plractive || !player.isOnActiveLevel()) {
if (!player.plractive || !player.isOnActiveLevel() || (player._pLvlChanging && &player != MyPlayer)) {
DoUnVision(vision.position.tile, vision.radius);
VisionActive[id] = false;
continue;
Expand Down

0 comments on commit 3514e77

Please sign in to comment.