feat: hit on primitives
This commit is contained in:
@@ -2,8 +2,6 @@ package world
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -59,7 +57,7 @@ func (w *World) collectCandidatesForTile(r Rect) []MapItem {
|
||||
rowStart := w.worldToCellY(r.minY)
|
||||
rowEnd := w.worldToCellY(r.maxY - 1)
|
||||
|
||||
seen := make(map[uuid.UUID]struct{})
|
||||
seen := make(map[PrimitiveID]struct{})
|
||||
result := make([]MapItem, 0)
|
||||
|
||||
for row := rowStart; row <= rowEnd; row++ {
|
||||
|
||||
Reference in New Issue
Block a user