[nostalgia/core/gba] Add missing section multiplier to TILE_ADDR section index
This commit is contained in:
parent
4247ac0651
commit
0fbe1b96c3
@ -132,7 +132,7 @@ ox::Error loadTileSheet(Context *ctx,
|
|||||||
GbaTileMapTarget target;
|
GbaTileMapTarget target;
|
||||||
target.pal.palette = &MEM_PALLETE_BG[section];
|
target.pal.palette = &MEM_PALLETE_BG[section];
|
||||||
target.bgCtl = &bgCtl(section);
|
target.bgCtl = &bgCtl(section);
|
||||||
target.tileMap = &TILE_ADDR[section];
|
target.tileMap = &TILE_ADDR[section * 512];
|
||||||
oxReturnError(ox::readMC(ts, tsStat.size, &target));
|
oxReturnError(ox::readMC(ts, tsStat.size, &target));
|
||||||
// load external palette if available
|
// load external palette if available
|
||||||
if (paletteAddr) {
|
if (paletteAddr) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user