mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-30 14:14:43 +00:00
Fix room resource loading in Buzzy games.
svn-id: r16972
This commit is contained in:
parent
9f364eaf65
commit
3cd0ff763c
@ -639,7 +639,7 @@ void ScummEngine::ensureResourceLoaded(int type, int i) {
|
|||||||
|
|
||||||
debugC(DEBUG_RESOURCE, "ensureResourceLoaded(%s,%d)", resTypeFromId(type), 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];
|
i = _resourceMapper[i & 0x7F];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -666,7 +666,7 @@ void ScummEngine::ensureResourceLoaded(int type, int i) {
|
|||||||
loadResource(type, i);
|
loadResource(type, i);
|
||||||
|
|
||||||
if (_version == 5 && type == rtRoom && i == _roomResource)
|
if (_version == 5 && type == rtRoom && i == _roomResource)
|
||||||
VAR(VAR_ROOM_FLAG) = 1;
|
VAR(VAR_ROOM_FLAG) = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ScummEngine::loadResource(int type, int idx) {
|
int ScummEngine::loadResource(int type, int idx) {
|
||||||
|
Loading…
Reference in New Issue
Block a user