Changeset 182 for trunk/LocalPlayer/IsoEngine.pas
- Timestamp:
- Dec 26, 2019, 12:09:50 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/IsoEngine.pas
r170 r182 89 89 90 90 // sprites indexes 91 sp DeadLands= 2 * TerrainIconCols + 6;91 spRow2 = 2 * TerrainIconCols + 6; 92 92 spBlink1 = 1 * TerrainIconCols + 8; 93 93 spBlink2 = 2 * TerrainIconCols + 8; … … 107 107 spPollution = 12 * TerrainIconCols + 6; 108 108 spFortBack = 12 * TerrainIconCols + 7; 109 spMinerals = 12 * TerrainIconCols + 8; 109 110 spRiver = 13 * TerrainIconCols; 111 spRiverMouths = 15 * TerrainIconCols; 112 spGrid = 15 * TerrainIconCols + 6; 110 113 spJungle = 18 * TerrainIconCols; 114 spCanalMouths = 20 * TerrainIconCols; 111 115 112 116 var … … 137 141 i, x, y, xSrc, ySrc, HGrTerrainNew, HGrCitiesNew, age, size: integer; 138 142 LandMore, OceanMore, DitherMask, Mask24: TBitmap; 139 MaskLine: array [0 .. 32* 3 - 1] of TPixelPointer; // 32 = assumed maximum for yyt143 MaskLine: array [0 .. 50 * 3 - 1] of TPixelPointer; // 32 = assumed maximum for yyt 140 144 Border: boolean; 141 145 begin … … 422 426 Borders := TBitmap.Create; 423 427 Borders.PixelFormat := pf24bit; 424 Borders.SetSize(xxt * 2, (yyt * 2) * nPl);428 Borders.SetSize(xxt * 2, (yyt * 2) * nPl); 425 429 Borders.Canvas.FillRect(0, 0, Borders.Width, Borders.Height); 426 430 BordersOK := 0; … … 876 880 end 877 881 else if Tile and fDeadLands <> 0 then 878 TSprite(x, y, sp DeadLands);882 TSprite(x, y, spRow2); 879 883 880 884 if ShowObjects then … … 898 902 for Dir := 0 to 3 do 899 903 if Conn and (1 shl Dir) <> 0 then { river mouths } 900 TSprite(x, y, 15 * TerrainIconCols + Dir);904 TSprite(x, y, spRiverMouths + Dir); 901 905 if ShowObjects then 902 906 begin … … 904 908 for Dir := 0 to 7 do 905 909 if Conn and (1 shl Dir) <> 0 then { canal mouths } 906 TSprite(x, y, 20 * TerrainIconCols + 1 + Dir);910 TSprite(x, y, spCanalMouths + 1 + Dir); 907 911 end 908 912 end; … … 1112 1116 end; 1113 1117 end; 1114 if Tile and fDeadLands<> 0 then1115 TSprite(x, y, (12 + Tile shr 25 and 3) * TerrainIconCols + 8);1118 if (Tile and fDeadLands) <> 0 then 1119 TSprite(x, y, spMinerals + (Tile shr 25 and 3) * TerrainIconCols); 1116 1120 1117 1121 if Options and (1 shl moEditMode) <> 0 then … … 1131 1135 1 + yyt + 15 * (yyt * 3 + 1)) 1132 1136 else 1133 TSprite(x, y, 6 + TerrainIconCols * 15, xxt <> 33);1137 TSprite(x, y, spGrid, xxt <> 33); 1134 1138 1135 1139 if FoW and (Tile and fObserved = 0) then
Note:
See TracChangeset
for help on using the changeset viewer.