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 authored and AJenbo committed Feb 14, 2025
1 parent 9bd6dc2 commit b9d79b4
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 b9d79b4

Please sign in to comment.