Browse Source

Do not process vision for remote players when they are between dungeon levels

pull/7758/head
staphen 1 year ago committed by Anders Jenbo
parent
commit
b9d79b4314
  1. 2
      Source/lighting.cpp

2
Source/lighting.cpp

@ -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;

Loading…
Cancel
Save