Skip to content

Commit

Permalink
Update src/map/mapfield.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Joris Dauphin <[email protected]>
  • Loading branch information
ipochto and Jarod42 authored Nov 25, 2023
1 parent 473fae6 commit 63dae4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/mapfield.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ bool CMapField::IsTerrainResourceOnMap() const

void CMapField::setTileIndex(const CTileset &tileset, const tile_index tileIndex, const int value, const uint8_t elevation, const int subtile /* = -1 */)
{
uint8_t compShift = 0; // [0..F] in case then current tileset slot length is shorter then map's original
uint8_t compShift = 0; // [0..F] in case that current tileset slot length is shorter than map's original

if (tileIndex >= ExtendedTilesetBeginIdx) { // tile from extended tileset
while(tileset.tiles[tileIndex - compShift].tile == 0 && ((tileIndex & 0xF) - compShift) > 0) {
Expand Down

0 comments on commit 63dae4e

Please sign in to comment.