aboutsummaryrefslogtreecommitdiff
path: root/draw.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-02-17 08:00:18 +0100
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-02-17 08:00:18 +0100
commit8da30c8dd8cc0860768ff0e54f0d092ac94013fa (patch)
tree603cf87fe5a7cc0efc68b61443f46c6aa2ff4ce0 /draw.go
parentf059ff3201599fed63302ac9e0ff315a05059922 (diff)
Selection is now Selectable
Diffstat (limited to 'draw.go')
-rw-r--r--draw.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/draw.go b/draw.go
index 4f97cb8..1433d08 100644
--- a/draw.go
+++ b/draw.go
@@ -26,8 +26,8 @@ func (g *Game) Draw(screen *ebiten.Image) {
op := &ebiten.DrawImageOptions{}
op.GeoM.Translate(float64(position.X), float64(position.Y))
screen.DrawImage(image, op)
- if mask&ecs.CM_Selection == ecs.CM_Selection {
- selectable := g.Selection[i]
+ if mask&ecs.CM_Selectable == ecs.CM_Selectable {
+ selectable := g.Selectable[i]
if selectable.IsSelected {
opt := &ebiten.DrawImageOptions{}
opt.GeoM.Translate(float64(position.X-selection.HaloWidth/2), float64(position.Y-selection.HaloWidth/2))