- Timestamp:
- Mar 15, 2021, 8:06:54 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Term.pas
r301 r310 4072 4072 TerrainTile: Cardinal; 4073 4073 begin 4074 if not Assigned(MyMap) then Exit; 4074 4075 cmPolOcean := GrExt[HGrSystem].Data.Canvas.Pixels[101, 67]; 4075 4076 cmPolNone := GrExt[HGrSystem].Data.Canvas.Pixels[102, 67]; 4076 4077 hw := MapWidth div (xxt * 2); 4077 with Mini.Canvas do 4078 begin 4078 with Mini.Canvas do begin 4079 4079 Brush.Color := $000000; 4080 4080 FillRect(Rect(0, 0, Mini.width, Mini.height)); … … 4083 4083 MiniPixel := PixelPointer(Mini); 4084 4084 PrevMiniPixel := PixelPointer(Mini); 4085 for y := 0 to ScaleToNative(G.ly) - 1 do 4086 begin 4087 for x := 0 to ScaleToNative(G.lx) - 1 do 4088 if MyMap[ScaleFromNative(x) + G.lx * ScaleFromNative(y)] and fTerrain <> fUNKNOWN then 4089 begin 4090 Loc := ScaleFromNative(x) + G.lx * ScaleFromNative(y); 4091 for i := 0 to 1 do 4092 begin 4085 for y := 0 to ScaleToNative(G.ly) - 1 do begin 4086 for x := 0 to ScaleToNative(G.lx) - 1 do begin 4087 Loc := ScaleFromNative(x) + G.lx * ScaleFromNative(y); 4088 if (MyMap[Loc] and fTerrain) <> fUNKNOWN then begin 4089 for i := 0 to 1 do begin 4093 4090 xm := ((x - ScaleToNative(xwMini)) * 2 + i + y and 1 - ScaleToNative(hw) + 4094 4091 ScaleToNative(G.lx) * 5) mod (ScaleToNative(G.lx) * 2); … … 4124 4121 PrevMiniPixel.Pixel^.G := cm shr 8 and $FF; 4125 4122 PrevMiniPixel.Pixel^.R := cm and $FF; 4126 end 4123 end; 4127 4124 end 4128 4125 else if (i = 0) and (MyMap[Loc] and fUnit <> 0) then … … 4157 4154 end; 4158 4155 end; 4156 end; 4159 4157 end; 4160 4158 Mini.EndUpdate; … … 4351 4349 Prio: boolean; 4352 4350 begin 4351 if not Assigned(MyRO) then Exit; 4353 4352 with Panel.Canvas do 4354 4353 begin
Note:
See TracChangeset
for help on using the changeset viewer.