Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 1 bytes modified

beta.r3js.org
-=yb4f310 2018-03-21 14:09:24 +01:00
parent d88d1e08da
commit 62709b4137
1 changed files with 1 additions and 1 deletions

View File

@ -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;