mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-24 06:37:07 +00:00
Warn when tile or palette IDs cannot fit in the tilemap or attrmap respectively (#2077)
Co-authored-by: Eldred Habert <[email protected]>
This commit is contained in:
@@ -299,6 +299,10 @@ static void parseArg(int ch, char *arg) {
|
||||
break;
|
||||
|
||||
case 'N':
|
||||
// Explicit numbers for either tile bank cannot be greater than 256.
|
||||
// If they were greater than 256, it would permit tile IDs to be truncated in the tilemap.
|
||||
// We do warn that tile IDs may be truncated for the implicit/default unlimited number of
|
||||
// tiles in bank 0.
|
||||
options.maxNbTiles[0] = readNumber(argPtr, "Number of tiles in bank 0", 256);
|
||||
if (options.maxNbTiles[0] > 256) {
|
||||
error("Bank 0 cannot contain more than 256 tiles");
|
||||
|
||||
Reference in New Issue
Block a user