nits
This commit is contained in:
parent
6686c24cd6
commit
b08cb774e1
2 changed files with 3 additions and 3 deletions
|
@ -268,7 +268,7 @@ func postorderWalk(component, parent interface{}, visit func(component, parent i
|
||||||
// LoadAndPrepare must be called before any calls to Component or Query.
|
// LoadAndPrepare must be called before any calls to Component or Query.
|
||||||
func (g *Game) LoadAndPrepare(assets fs.FS) error {
|
func (g *Game) LoadAndPrepare(assets fs.FS) error {
|
||||||
if g.VoxelScale == (geom.Float3{}) {
|
if g.VoxelScale == (geom.Float3{}) {
|
||||||
g.VoxelScale = geom.Float3{1, 1, 1}
|
g.VoxelScale = geom.Float3{X: 1, Y: 1, Z: 1}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load all the Loaders.
|
// Load all the Loaders.
|
||||||
|
|
|
@ -66,8 +66,8 @@ func (m *PrismMap) CollidesWith(b geom.Box) bool {
|
||||||
rb = rb.Canon() // inverse might flip the corners around...
|
rb = rb.Canon() // inverse might flip the corners around...
|
||||||
|
|
||||||
// Check neighboring prisms too because there's a fencepost somewhere here
|
// Check neighboring prisms too because there's a fencepost somewhere here
|
||||||
rb.Min = rb.Min.Sub(geom.Int3{1, 1, 1})
|
rb.Min = rb.Min.Sub(geom.Int3{X: 1, Y: 1, Z: 1})
|
||||||
rb.Max = rb.Max.Add(geom.Int3{1, 1, 1})
|
rb.Max = rb.Max.Add(geom.Int3{X: 1, Y: 1, Z: 1})
|
||||||
|
|
||||||
var pp geom.Int3
|
var pp geom.Int3
|
||||||
for pp.Z = rb.Min.Z; pp.Z <= rb.Max.Z; pp.Z++ {
|
for pp.Z = rb.Min.Z; pp.Z <= rb.Max.Z; pp.Z++ {
|
||||||
|
|
Loading…
Reference in a new issue