Off by one.

svn-id: r17138
This commit is contained in:
Travis Howell 2005-03-15 01:19:36 +00:00
parent ef57db4105
commit 7bb8de561b
2 changed files with 2 additions and 2 deletions

View File

@ -855,7 +855,7 @@ void ScummEngine::cost_decodeNESCostumeGfx() {
byte *patTable = getResourceAddress(rtCostume, v1MMNEScostTables[n][4]);
int j = 0;
int i = 3;
int maxSprites = 256; //patTable[3];
int maxSprites = 257; //patTable[3];
int len = READ_LE_UINT16(patTable);
if (maxSprites == 0)

View File

@ -1583,7 +1583,7 @@ void ScummEngine::setupMusic(int midi) {
_musicEngine = new Player_V2A(this);
} else if ((_features & GF_AMIGA) && (_version == 3)) {
_musicEngine = new Player_V3A(this);
} else if ((_features & GF_AMIGA) && (_version < 5)) {
} else if (((_features & GF_AMIGA) && (_version < 5)) || (_features & GF_NES)) {
_musicEngine = NULL;
} else if (((_midiDriver == MD_PCJR) || (_midiDriver == MD_PCSPK)) && ((_version > 2) && (_version < 5))) {
_musicEngine = new Player_V2(this, _midiDriver != MD_PCSPK);