Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 1 bytes modified
parent
d88d1e08da
commit
62709b4137
|
@ -243,7 +243,7 @@ GameLib.CustomCode.prototype.createFood = function(delta) {
|
|||
}
|
||||
)
|
||||
|
||||
if (this.food.length >= GameLib.CustomCode.MAX_FOOD_ITEMS) {
|
||||
if (this.food.length > GameLib.CustomCode.MAX_FOOD_ITEMS) {
|
||||
var deleteme = this.food.shift();
|
||||
deleteme.mesh.geometry = null;
|
||||
deleteme.mesh.materials = null;
|
||||
|
|
Loading…
Reference in New Issue