Fix room resource loading in Buzzy games.

svn-id: r16972
This commit is contained in:
Travis Howell 2005-03-02 11:57:11 +00:00
parent 9f364eaf65
commit 3cd0ff763c

View File

@ -639,7 +639,7 @@ void ScummEngine::ensureResourceLoaded(int type, int i) {
debugC(DEBUG_RESOURCE, "ensureResourceLoaded(%s,%d)", resTypeFromId(type), i);
if ((type == rtRoom) && i > 0x7F && _version < 7) {
if ((type == rtRoom) && i > 0x7F && _version < 7 && _heversion <= 71) {
i = _resourceMapper[i & 0x7F];
}
@ -666,7 +666,7 @@ void ScummEngine::ensureResourceLoaded(int type, int i) {
loadResource(type, i);
if (_version == 5 && type == rtRoom && i == _roomResource)
VAR(VAR_ROOM_FLAG) = 1;
VAR(VAR_ROOM_FLAG) = 1;
}
int ScummEngine::loadResource(int type, int idx) {