Changeset 331 for trunk/LocalPlayer
- Timestamp:
- Mar 26, 2021, 3:24:15 PM (4 years ago)
- Location:
- trunk/LocalPlayer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Help.pas
r330 r331 771 771 xxt * 2 - 8, yyt * 2 - 4, 5 + 2 * (xxt * 2 + 1), 772 772 3 + yyt + 2 * (yyt * 3 + 1)); 773 srcno := 45 773 srcno := 45; 774 774 end 775 775 else -
trunk/LocalPlayer/IsoEngine.pas
r330 r331 1093 1093 var 1094 1094 dx, dy: integer; 1095 PixelPtr: TPixelPointer;1096 1095 begin 1097 1096 if ShowBorder and (Loc >= 0) and (Loc < G.lx * G.ly) and … … 1104 1103 yyt * 2, HGrTerrain.Data.Canvas, 1105 1104 1 + 8 * (xxt * 2 + 1), 1 + yyt + 16 * (yyt * 3 + 1)); 1106 Borders.BeginUpdate; 1107 PixelPtr := PixelPointer(Borders, ScaleToNative(0), ScaleToNative(p1 * (yyt * 2))); 1108 for dy := 0 to ScaleToNative(yyt * 2) - 1 do begin 1109 for dx := 0 to ScaleToNative(xxt * 2) - 1 do begin 1110 if PixelPtr.Pixel^.B = 99 then begin 1111 PixelPtr.Pixel^.B := Tribe[p1].Color shr 16 and $FF; 1112 PixelPtr.Pixel^.G := Tribe[p1].Color shr 8 and $FF; 1113 PixelPtr.Pixel^.R := Tribe[p1].Color and $FF; 1114 end; 1115 PixelPtr.NextPixel; 1116 end; 1117 PixelPtr.NextLine; 1118 end; 1119 Borders.EndUpdate; 1105 BitmapReplaceColor(Borders, 0, p1 * (yyt * 2), xxt * 2, yyt * 2, $636363, Tribe[p1].Color); 1120 1106 BordersOK^ := BordersOK^ or 1 shl p1; 1121 1107 end;
Note:
See TracChangeset
for help on using the changeset viewer.