mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-14 04:46:49 -05:00
Fix 'getBlock' functions use for tiles, add getTilePixels to API
This commit is contained in:
@@ -9,11 +9,11 @@ Metatile::Metatile() :
|
||||
terrainType(0)
|
||||
{ }
|
||||
|
||||
int Metatile::getBlockIndex(int index) {
|
||||
if (index < Project::getNumMetatilesPrimary()) {
|
||||
return index;
|
||||
int Metatile::getIndexInTileset(int metatileId) {
|
||||
if (metatileId < Project::getNumMetatilesPrimary()) {
|
||||
return metatileId;
|
||||
} else {
|
||||
return index - Project::getNumMetatilesPrimary();
|
||||
return metatileId - Project::getNumMetatilesPrimary();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user