Skip to content

Commit

Permalink
Use new debug flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kensonjohnson committed Sep 27, 2024
1 parent 09f8789 commit c8b4f16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/scene/levelscene.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/kensonjohnson/roguelike-game-go/component"
"github.com/kensonjohnson/roguelike-game-go/event"
"github.com/kensonjohnson/roguelike-game-go/internal/config"
"github.com/kensonjohnson/roguelike-game-go/internal/engine"
"github.com/kensonjohnson/roguelike-game-go/system"
"github.com/kensonjohnson/roguelike-game-go/system/layer"
"github.com/yohamta/donburi"
Expand Down Expand Up @@ -104,7 +105,7 @@ func (ls *LevelScene) configureECS(world donburi.World) {
ls.ecs.AddRenderer(layer.UI, system.UI.Draw)
ls.ecs.AddRenderer(layer.UI, system.Minimap.Draw)
ls.ecs.AddRenderer(layer.UI, system.InventoryUI.Draw)
if system.Debug.On {
if engine.Debug.On() {
ls.ecs.AddRenderer(layer.UI, system.Debug.Draw)
}

Expand Down

0 comments on commit c8b4f16

Please sign in to comment.