Fix bug where we were still placing psuedo-random objects down
This commit is contained in:
parent
a235f6a5f5
commit
113090fbcb
1 changed files with 0 additions and 10 deletions
|
@ -2,7 +2,6 @@ package rove
|
|||
|
||||
import (
|
||||
"log"
|
||||
"math/rand"
|
||||
|
||||
"github.com/mdiluz/rove/pkg/maths"
|
||||
"github.com/mdiluz/rove/proto/roveapi"
|
||||
|
@ -111,15 +110,6 @@ func (a *chunkBasedAtlas) populate(chunk int) {
|
|||
}
|
||||
}
|
||||
|
||||
// Set up any objects
|
||||
for i := 0; i < len(c.Tiles); i++ {
|
||||
if rand.Intn(16) == 0 {
|
||||
c.Objects[i] = Object{Type: roveapi.Object_RockLarge}
|
||||
} else if rand.Intn(32) == 0 {
|
||||
c.Objects[i] = Object{Type: roveapi.Object_RockSmall}
|
||||
}
|
||||
}
|
||||
|
||||
a.Chunks[chunk] = c
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue