Changeset 522 for trunk/Database.pas
- Timestamp:
- Jan 7, 2024, 10:24:51 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Database.pas
r451 r522 510 510 begin 511 511 dxdy(Loc0, Loc1, dx, dy); 512 dx := abs(dx);513 dy := abs(dy);514 Result := dx + dy + abs(dx - dy) shr 1;512 dx := Abs(dx); 513 dy := Abs(dy); 514 Result := dx + dy + Abs(dx - dy) shr 1; 515 515 end; 516 516 … … 978 978 ShSwamp = 25; { of grassland } 979 979 MinRivLen = 3; 980 unification = 70;981 hotunification = 50; // min. 25980 Unification = 70; 981 HotUnification = 50; // min. 25 982 982 983 983 Zone: array [0 .. 3, 2 .. 9] of Single = { terrain distribution } … … 1165 1165 CopyFrom[Loc0] := Loc0; 1166 1166 1167 for N := 0 to unification * MapSize div 100 do1167 for N := 0 to Unification * MapSize div 100 do 1168 1168 begin 1169 1169 Y := DelphiRandom(ly); 1170 if abs(Y - (ly shr 1)) > ly div 4 + DelphiRandom(ly * hotunification div 100) then1170 if Abs(Y - (ly shr 1)) > ly div 4 + DelphiRandom(ly * HotUnification div 100) then 1171 1171 if Y < ly shr 1 then 1172 1172 Y := ly shr 1 - Y … … 2792 2792 begin 2793 2793 dxMax := dy and 1; 2794 while abs(dy) + (dxMax + 2) + abs(abs(dy) - (dxMax + 2)) shr 1 <=2794 while Abs(dy) + (dxMax + 2) + Abs(Abs(dy) - (dxMax + 2)) shr 1 <= 2795 2795 CountryRadius do 2796 2796 Inc(dxMax, 2); … … 2904 2904 begin 2905 2905 dxMax := dy and 1; 2906 while abs(dy) + (dxMax + 2) + abs(abs(dy) - (dxMax + 2)) shr 1 <=2906 while Abs(dy) + (dxMax + 2) + Abs(Abs(dy) - (dxMax + 2)) shr 1 <= 2907 2907 CountryRadius do 2908 2908 Inc(dxMax, 2);
Note:
See TracChangeset
for help on using the changeset viewer.