hedgewars/uLandOutline.pas
author unC0Rr
Wed, 28 Aug 2024 17:16:23 +0200
branchtransitional_engine
changeset 16052 0fd23fc57947
parent 15929 128ace913837
child 16058 9cbd18220eb7
permissions -rw-r--r--
Make pascal engine link to hwengine-future and use WFC generator
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6490
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
     1
unit uLandOutline;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
     2
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
     3
interface
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
     4
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
     5
uses uConsts, SDLh, uFloat;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
     6
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
     7
type TPixAr = record
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
     8
              Count: Longword;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
     9
              ar: array[0..Pred(cMaxEdgePoints)] of TPoint;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    10
              end;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    11
10189
875607ce793d - Rework FillLand
unc0rr
parents: 8850
diff changeset
    12
procedure DrawEdge(var pa: TPixAr; value: Word);
6490
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    13
procedure BezierizeEdge(var pa: TPixAr; Delta: hwFloat);
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    14
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    15
implementation
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    16
15929
128ace913837 Introduce hwengine-future library, use Land allocated in it
unC0Rr
parents: 14046
diff changeset
    17
uses uLandGraphics, uDebug, uVariables, uLandTemplates, uLandUtils;
6490
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    18
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    19
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    20
var Stack: record
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    21
           Count: Longword;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    22
           points: array[0..8192] of record
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    23
                                     xl, xr, y, dir: LongInt;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    24
                                     end
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    25
           end;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    26
8145
6408c0ba4ba1 Move global variables to units that use them
Joe Doyle (Ginto8) <ginto8@gmail.com>
parents: 6990
diff changeset
    27
6490
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    28
procedure Push(_xl, _xr, _y, _dir: LongInt);
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    29
begin
11532
bf86c6cb9341 Bye-bye TryDo
unc0rr
parents: 10560
diff changeset
    30
    if checkFails(Stack.Count <= 8192, 'FillLand: stack overflow', true) then exit;
6490
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    31
    _y:= _y + _dir;
6580
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6491
diff changeset
    32
    if (_y < 0) or (_y >= LAND_HEIGHT) then
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6491
diff changeset
    33
        exit;
6490
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    34
    with Stack.points[Stack.Count] do
6580
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6491
diff changeset
    35
        begin
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6491
diff changeset
    36
        xl:= _xl;
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6491
diff changeset
    37
        xr:= _xr;
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6491
diff changeset
    38
        y:= _y;
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6491
diff changeset
    39
        dir:= _dir
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6491
diff changeset
    40
        end;
6490
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    41
    inc(Stack.Count)
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    42
end;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    43
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    44
procedure Pop(var _xl, _xr, _y, _dir: LongInt);
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    45
begin
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    46
    dec(Stack.Count);
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    47
    with Stack.points[Stack.Count] do
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    48
        begin
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    49
        _xl:= xl;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    50
        _xr:= xr;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    51
        _y:= y;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    52
        _dir:= dir
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    53
        end
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    54
end;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    55
10189
875607ce793d - Rework FillLand
unc0rr
parents: 8850
diff changeset
    56
procedure DrawEdge(var pa: TPixAr; value: Word);
6490
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    57
var i: LongInt;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    58
begin
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    59
    i:= 0;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    60
    with pa do
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    61
        while i < LongInt(Count) - 1 do
8330
aaefa587e277 update branch with default
koda
parents: 8145
diff changeset
    62
            if (ar[i + 1].X = NTPX) then
6490
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    63
                inc(i, 2)
8330
aaefa587e277 update branch with default
koda
parents: 8145
diff changeset
    64
            else
6490
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    65
                begin
10189
875607ce793d - Rework FillLand
unc0rr
parents: 8850
diff changeset
    66
                DrawLine(ar[i].x, ar[i].y, ar[i + 1].x, ar[i + 1].y, value);
6490
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    67
                inc(i)
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    68
                end
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    69
end;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    70
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    71
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    72
procedure Vector(p1, p2, p3: TPoint; var Vx, Vy: hwFloat);
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    73
var d1, d2, d: hwFloat;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    74
begin
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    75
    Vx:= int2hwFloat(p1.X - p3.X);
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    76
    Vy:= int2hwFloat(p1.Y - p3.Y);
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    77
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    78
    d2:= Distance(Vx, Vy);
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    79
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    80
    if d2.QWordValue = 0 then
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    81
        begin
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    82
        Vx:= _0;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    83
        Vy:= _0
8330
aaefa587e277 update branch with default
koda
parents: 8145
diff changeset
    84
        end
6490
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    85
    else
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    86
        begin
10197
c57798251b55 Some optimizations
unc0rr
parents: 10189
diff changeset
    87
        d:= DistanceI(p2.X - p1.X, p2.Y - p1.Y);
c57798251b55 Some optimizations
unc0rr
parents: 10189
diff changeset
    88
        d1:= DistanceI(p2.X - p3.X, p2.Y - p3.Y);
10510
9329dab04490 some whitespace fixes
sheepluva
parents: 10485
diff changeset
    89
10197
c57798251b55 Some optimizations
unc0rr
parents: 10189
diff changeset
    90
        if d1 < d then
c57798251b55 Some optimizations
unc0rr
parents: 10189
diff changeset
    91
            d:= d1;
c57798251b55 Some optimizations
unc0rr
parents: 10189
diff changeset
    92
        if d2 < d then
c57798251b55 Some optimizations
unc0rr
parents: 10189
diff changeset
    93
            d:= d2;
c57798251b55 Some optimizations
unc0rr
parents: 10189
diff changeset
    94
c57798251b55 Some optimizations
unc0rr
parents: 10189
diff changeset
    95
        d2:= d * _1div3 / d2;
10510
9329dab04490 some whitespace fixes
sheepluva
parents: 10485
diff changeset
    96
6490
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    97
        Vx:= Vx * d2;
10197
c57798251b55 Some optimizations
unc0rr
parents: 10189
diff changeset
    98
        Vy:= Vy * d2
6490
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
    99
        end
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   100
end;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   101
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   102
procedure AddLoopPoints(var pa, opa: TPixAr; StartI, EndI: LongInt; Delta: hwFloat);
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   103
var i, pi, ni: LongInt;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   104
    NVx, NVy, PVx, PVy: hwFloat;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   105
    x1, x2, y1, y2: LongInt;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   106
    tsq, tcb, t, r1, r2, r3, cx1, cx2, cy1, cy2: hwFloat;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   107
    X, Y: LongInt;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   108
begin
10485
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   109
    if pa.Count < cMaxEdgePoints - 2 then
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   110
        begin
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   111
        pi:= EndI;
6580
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6491
diff changeset
   112
        i:= StartI;
10485
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   113
        ni:= Succ(StartI);
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   114
        {$HINTS OFF}
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   115
        Vector(opa.ar[pi], opa.ar[i], opa.ar[ni], NVx, NVy);
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   116
        {$HINTS ON}
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   117
        repeat
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   118
            i:= ni;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   119
            inc(pi);
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   120
            if pi > EndI then
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   121
                pi:= StartI;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   122
            inc(ni);
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   123
            if ni > EndI then
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   124
                ni:= StartI;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   125
            PVx:= NVx;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   126
            PVy:= NVy;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   127
            Vector(opa.ar[pi], opa.ar[i], opa.ar[ni], NVx, NVy);
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   128
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   129
            x1:= opa.ar[pi].x;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   130
            y1:= opa.ar[pi].y;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   131
            x2:= opa.ar[i].x;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   132
            y2:= opa.ar[i].y;
6490
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   133
10485
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   134
            cx1:= int2hwFloat(x1) - PVx;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   135
            cy1:= int2hwFloat(y1) - PVy;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   136
            cx2:= int2hwFloat(x2) + NVx;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   137
            cy2:= int2hwFloat(y2) + NVy;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   138
            t:= _0;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   139
            while (t.Round = 0) and (pa.Count < cMaxEdgePoints-2) do
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   140
                begin
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   141
                tsq:= t * t;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   142
                tcb:= tsq * t;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   143
                r1:= (_1 - t*3 + tsq*3 - tcb);
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   144
                r2:= (     t*3 - tsq*6 + tcb*3);
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   145
                r3:= (           tsq*3 - tcb*3);
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   146
                X:= hwRound(r1 * x1 + r2 * cx1 + r3 * cx2 + tcb * x2);
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   147
                Y:= hwRound(r1 * y1 + r2 * cy1 + r3 * cy2 + tcb * y2);
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   148
                t:= t + Delta;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   149
                pa.ar[pa.Count].x:= X;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   150
                pa.ar[pa.Count].y:= Y;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   151
                inc(pa.Count);
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   152
                //TryDo(pa.Count <= cMaxEdgePoints, 'Edge points overflow', true)
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   153
                end;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   154
        until i = StartI;
6580
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6491
diff changeset
   155
        end;
10485
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   156
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   157
    pa.ar[pa.Count].x:= opa.ar[StartI].X;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   158
    pa.ar[pa.Count].y:= opa.ar[StartI].Y;
05b771423b95 You can't just exit function which is supposed to do copy
unc0rr
parents: 10483
diff changeset
   159
    inc(pa.Count)
6490
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   160
end;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   161
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   162
procedure BezierizeEdge(var pa: TPixAr; Delta: hwFloat);
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   163
var i, StartLoop: LongInt;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   164
    opa: TPixAr;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   165
begin
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   166
opa:= pa;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   167
pa.Count:= 0;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   168
i:= 0;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   169
StartLoop:= 0;
10483
1f58cb4aa773 Since unc0rr is quiet, try to avoid the assert
nemo
parents: 10197
diff changeset
   170
while (i < LongInt(opa.Count)) and (pa.Count < cMaxEdgePoints-1) do
6490
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   171
    if (opa.ar[i + 1].X = NTPX) then
6580
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6491
diff changeset
   172
        begin
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6491
diff changeset
   173
        AddLoopPoints(pa, opa, StartLoop, i, Delta);
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6491
diff changeset
   174
        inc(i, 2);
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6491
diff changeset
   175
        StartLoop:= i;
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6491
diff changeset
   176
        pa.ar[pa.Count].X:= NTPX;
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6491
diff changeset
   177
        pa.ar[pa.Count].Y:= 0;
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6491
diff changeset
   178
        inc(pa.Count);
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6491
diff changeset
   179
        end else inc(i)
6490
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   180
end;
531bf083e8db - Give uLand more modularity
unc0rr
parents:
diff changeset
   181
6580
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6491
diff changeset
   182
end.