mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Allow rgbgfx -r to read an infinite amount of tiles without tilemap
Previously, indices would be wrapped after 256 even without a tilemap; since RGBGFX can generate arbitrarily large tile data if `-N` is not used, it should be possible to read those in. Of course, this won't work if a tilemap is provided, but such "big blobs" can't generate a meaningful tilemap anyway.
This commit is contained in:
@@ -274,7 +274,7 @@ void reverse() {
|
||||
uint8_t attribute = attrmap.has_value() ? (*attrmap)[index] : 0x00;
|
||||
bool bank = attribute & 0x08;
|
||||
// Get the tile ID at this location
|
||||
uint8_t tileID = index;
|
||||
size_t tileID = index;
|
||||
if (tilemap.has_value()) {
|
||||
tileID =
|
||||
(*tilemap)[index] - options.baseTileIDs[bank] + bank * options.maxNbTiles[0];
|
||||
|
||||
Reference in New Issue
Block a user