hedgewars/tunsetborder.inc
author unc0rr
Thu, 14 Sep 2006 17:20:50 +0000
changeset 145 e593d5266e01
parent 101 f568cc72ea8c
child 184 f97a7a3dc8f6
permissions -rw-r--r--
- Fix crash in AI - Dont allow to add more than 5 teams

        begin
        X:= X + dX;
        Y:= Y + dY;
        tx:= round(X);
        ty:= round(Y);
        if ((ty and $FFFFFC00) = 0) and ((tx and $FFFFF800) = 0)and (Land[ty, tx] = $FFFFFF) then
           SetLandPixel(ty, tx)
	end;