Ignore:
Timestamp:
Dec 26, 2019, 12:09:50 AM (4 years ago)
Author:
chronos
Message:
  • Added: Support for bigger map tile size.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/IsoEngine.pas

    r170 r182  
    8989
    9090  // sprites indexes
    91   spDeadLands = 2 * TerrainIconCols + 6;
     91  spRow2 = 2 * TerrainIconCols + 6;
    9292  spBlink1 = 1 * TerrainIconCols + 8;
    9393  spBlink2 = 2 * TerrainIconCols + 8;
     
    107107  spPollution = 12 * TerrainIconCols + 6;
    108108  spFortBack = 12 * TerrainIconCols + 7;
     109  spMinerals = 12 * TerrainIconCols + 8;
    109110  spRiver = 13 * TerrainIconCols;
     111  spRiverMouths = 15 * TerrainIconCols;
     112  spGrid = 15 * TerrainIconCols + 6;
    110113  spJungle = 18 * TerrainIconCols;
     114  spCanalMouths = 20 * TerrainIconCols;
    111115
    112116var
     
    137141  i, x, y, xSrc, ySrc, HGrTerrainNew, HGrCitiesNew, age, size: integer;
    138142  LandMore, OceanMore, DitherMask, Mask24: TBitmap;
    139   MaskLine: array [0 .. 32 * 3 - 1] of TPixelPointer; // 32 = assumed maximum for yyt
     143  MaskLine: array [0 .. 50 * 3 - 1] of TPixelPointer; // 32 = assumed maximum for yyt
    140144  Border: boolean;
    141145begin
     
    422426  Borders := TBitmap.Create;
    423427  Borders.PixelFormat := pf24bit;
    424   Borders.SetSize(xxt * 2,(yyt * 2) * nPl);
     428  Borders.SetSize(xxt * 2, (yyt * 2) * nPl);
    425429  Borders.Canvas.FillRect(0, 0, Borders.Width, Borders.Height);
    426430  BordersOK := 0;
     
    876880  end
    877881  else if Tile and fDeadLands <> 0 then
    878     TSprite(x, y, spDeadLands);
     882    TSprite(x, y, spRow2);
    879883
    880884  if ShowObjects then
     
    898902    for Dir := 0 to 3 do
    899903      if Conn and (1 shl Dir) <> 0 then { river mouths }
    900         TSprite(x, y, 15 * TerrainIconCols + Dir);
     904        TSprite(x, y, spRiverMouths + Dir);
    901905    if ShowObjects then
    902906    begin
     
    904908      for Dir := 0 to 7 do
    905909        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);
    907911    end
    908912  end;
     
    11121116    end;
    11131117  end;
    1114   if Tile and fDeadLands <> 0 then
    1115     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);
    11161120
    11171121  if Options and (1 shl moEditMode) <> 0 then
     
    11311135        1 + yyt + 15 * (yyt * 3 + 1))
    11321136    else
    1133       TSprite(x, y, 6 + TerrainIconCols * 15, xxt <> 33);
     1137      TSprite(x, y, spGrid, xxt <> 33);
    11341138
    11351139  if FoW and (Tile and fObserved = 0) then
Note: See TracChangeset for help on using the changeset viewer.