Skip to content

Commit 782bb99

Browse files
committed
Dynamic lights now respect whether lighting is enabled or not.
1 parent 268bd13 commit 782bb99

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dungeoneer/src/com/interrupt/dungeoneer/entities/DynamicLight.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import com.badlogic.gdx.math.Interpolation;
44
import com.badlogic.gdx.math.Vector3;
5+
import com.interrupt.dungeoneer.GameManager;
56
import com.interrupt.dungeoneer.annotations.EditorProperty;
67
import com.interrupt.dungeoneer.game.Game;
78
import com.interrupt.dungeoneer.game.Level;
@@ -153,7 +154,11 @@ else if(lightType == LightType.sin_fast) {
153154

154155
@Override
155156
public void tick(Level level, float delta)
156-
{
157+
{
158+
if (!GameManager.renderer.enableLighting) {
159+
return;
160+
}
161+
157162
updateLightColor(delta);
158163

159164
if(isActive && (on || (toggleLerpTime > 0 && toggleLerpTime < 1))) {

0 commit comments

Comments
 (0)