Crops: Fix endless loop in WaterCheck.

shapetextures
Clonkonaut 2015-10-04 01:38:24 +02:00
parent 60d521836e
commit 986917ce13
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ private func WaterCheck()
var y = 0;
var x = i - my_width/2;
while (!GBackLiquid(x, my_height - y) && y < my_height + 1)
y--;
y++;
if (MaterialName(GetMaterial(x, y)) == "Water")
if (ExtractLiquid(x, y))
water++;