Browse Source

Fix error in tile code computation.

legacy
Sam Hocevar sam 14 years ago
parent
commit
6a3405bf7a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/map.cpp

+ 1
- 1
src/map.cpp View File

@@ -74,7 +74,7 @@ Map::Map(char const *path)
if (n == data->ntilers - 1
|| id < gids[n + 1])
{
code = (data->tilers[n] << 16) | (id - 1);
code = (data->tilers[n] << 16) | (id - gids[n]);
break;
}
}


Loading…
Cancel
Save