misty
This commit is contained in:
@@ -25,7 +25,7 @@ grid.prototype = {
|
||||
// add an entity into a cell
|
||||
add(entity, pos) {
|
||||
this.cell(pos.x, pos.y).push(entity);
|
||||
entity.coord = pos.slice();
|
||||
entity.coord = array(pos);
|
||||
},
|
||||
|
||||
// remove an entity from a cell
|
||||
|
||||
Reference in New Issue
Block a user