Commit 1ac93522 authored by Hubert Denkmair's avatar Hubert Denkmair
Browse files

hide small food

parent e220cfa5
......@@ -29,7 +29,7 @@ FoodSprite.prototype.Decay = function(cycles)
this.food_value -= cycles*this.decay_rate;
this.UpdateSize();
}
if (this.food_value <= 0)
if (this.food_value <= 0.05)
{
this.visible = false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment