grammatical error

This commit is contained in:
unknown 2020-07-02 11:25:34 +02:00
parent ebb947b217
commit e89a03acdb
1 changed files with 2 additions and 2 deletions

View File

@ -13,9 +13,9 @@ type Common struct {
type Quadtree struct {
Rect
Common
nodes []*Quadtree
shapes []Collidable
Common
}
// Creates new quad tree reference.
@ -114,7 +114,7 @@ func (q *Quadtree) getSub(rect *Rect) int8 {
// GetRect() *pixel.Rect defined. GetRect function also slightly affects performance.
func (q *Quadtree) Insert(collidable Collidable) {
rect := collidable.GetRect()
// this is little memory expensive but it makes acsesing shapes faster
// this is little memory expensive but it makes acesing shapes faster
q.shapes = append(q.shapes, collidable)
if len(q.nodes) != 0 {
i := q.getSub(rect)