Skip to content

Commit

Permalink
Magic candle light now observes spell shadows setting
Browse files Browse the repository at this point in the history
Completes fix for #2052.
  • Loading branch information
Interkarma committed Jul 20, 2021
1 parent 6730f5f commit 4536c4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Assets/Scripts/Game/MagicAndEffects/MagicCandleBehaviour.cs
Expand Up @@ -16,6 +16,7 @@

namespace DaggerfallWorkshop.Game.MagicAndEffects
{
[RequireComponent(typeof(Light))]
public class MagicCandleBehaviour : MonoBehaviour
{
const int candleArchive = 210;
Expand All @@ -37,6 +38,9 @@ private void Start()

SaveLoadManager.OnStartLoad += SaveLoadManager_OnStartLoad;
StartGameBehaviour.OnNewGame += StartGameBehaviour_OnNewGame;

// Observe spell shadow setting
GetComponent<Light>().shadows = (DaggerfallUnity.Settings.EnableSpellShadows) ? LightShadows.Soft : LightShadows.None;
}

private void Update()
Expand Down

0 comments on commit 4536c4d

Please sign in to comment.