fix AI SetGuardRange

alut-include-path
Maikel de Vries 2017-01-19 19:57:31 +01:00
parent 3fb539522d
commit 7fb300896a
1 changed files with 3 additions and 3 deletions

View File

@ -160,10 +160,10 @@ public func SetGuardRange(object clonk, int x, int y, int wdt, int hgt)
wdt += x;
x = 0;
}
if (y < 0) // TODO: seems wrong!
if (y < 0)
{
wdt += x;
x = 0;
hgt += y;
y = 0;
}
wdt = Min(wdt, LandscapeWidth() - x);
hgt = Min(hgt, LandscapeHeight() - y);