hedgewars/uLandOutline.pas
changeset 8153 e97e00427204
parent 8145 6408c0ba4ba1
child 8330 aaefa587e277
equal deleted inserted replaced
8152:5e329951afe5 8153:e97e00427204
    24            Count: Longword;
    24            Count: Longword;
    25            points: array[0..8192] of record
    25            points: array[0..8192] of record
    26                                      xl, xr, y, dir: LongInt;
    26                                      xl, xr, y, dir: LongInt;
    27                                      end
    27                                      end
    28            end;
    28            end;
       
    29 
       
    30 const
       
    31     cMaxEdgePoints = 16384;
    29 
    32 
    30 procedure Push(_xl, _xr, _y, _dir: LongInt);
    33 procedure Push(_xl, _xr, _y, _dir: LongInt);
    31 begin
    34 begin
    32     TryDo(Stack.Count <= 8192, 'FillLand: stack overflow', true);
    35     TryDo(Stack.Count <= 8192, 'FillLand: stack overflow', true);
    33     _y:= _y + _dir;
    36     _y:= _y + _dir;