Vinifera icon indicating copy to clipboard operation
Vinifera copied to clipboard

[Vanilla Bug] Spotlight is not drawn if the building is hidden by fog

Open Crimsonum opened this issue 1 year ago • 0 comments

First Check

  • [X] I added a very descriptive title to this issue.
  • [X] I used the GitHub search to find a similar issue and didn't find it.
  • [X] I have attached as much information as possible (screenshots, debug and exception logs, etc).

Description

If a spotlight tower is covered by the Fog of War, the spotlight is not drawn.

I consider this issue a bug for a couple of reasons:

  • Fog of War is not used in the vanilla campaigns at all. In other words, this problem is only apparent in custom missions that make use of both the fog and spotlights.
  • This makes it very easy to avoid the spotlight, as you can often confidently move in the area where it should be cast, but as long as the tower itself is hidden by the fog, the spotlight is invisible and cannot be triggered.
  • The fog behaves differently from shroud: If the fog is disabled, the spotlight is drawn even if the tower is hidden in shroud.

Required Code (optional)

No response

Steps To Reproduce

  1. Download the attached test map
  2. Place the map in your TS directory
  3. Start the TS GDI campaign
  4. Observe the spotlight motion.
  5. Move your units away so that the spotlight tower is covered in fog.

Expected Behaviour

The spotlight should be drawn on any cells not covered by the fog, regardless whether the tower itself is hidden or not.

Actual Behaviour

Once the tower is covered by the fog, the spotlight disappears entirely.

Additional Context

Test Map

Example

Crimsonum avatar Jul 18 '23 08:07 Crimsonum