rm push/pop
This commit is contained in:
@@ -32,7 +32,7 @@ var grid_prototype = {
|
||||
// add an entity into a cell
|
||||
add(entity, pos) {
|
||||
var cx = px(pos), cy = py(pos);
|
||||
push(this.cell(cx, cy), entity);
|
||||
this.cell(cx, cy)[] = entity;
|
||||
entity.coord = [cx, cy];
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user