aboutsummaryrefslogtreecommitdiff
path: root/draw.go
diff options
context:
space:
mode:
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))