Ignore:
Timestamp:
Nov 8, 2018, 9:48:40 PM (6 years ago)
Author:
chronos
Message:
  • Fixed: Wrong sprite index calculation for special map tiles.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/IsoEngine.pas

    r150 r154  
    10921092      TSprite(x, y, SpecialCol + SpecialRow * TerrainIconCols)
    10931093    else if (SpecialCol = fForest) and IsJungle(dy) then
    1094       TSprite(x, y, 8 + 17 * TerrainIconCols + SpecialRow * TerrainIconCols)
     1094      TSprite(x, y, spJungle - 1 + SpecialRow * TerrainIconCols)
    10951095    else
    1096       TSprite(x, y, 8 + 2 * TerrainIconCols + (SpecialCol - fForest) * 2 + SpecialRow * TerrainIconCols);
     1096      TSprite(x, y, spForest - 1 + ((SpecialCol - fForest) * 2 + SpecialRow) * TerrainIconCols);
    10971097  end;
    10981098
Note: See TracChangeset for help on using the changeset viewer.