mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-06 10:58:01 +00:00
removed _heV7RoomIntOffsets
svn-id: r15176
This commit is contained in:
parent
768133d6e6
commit
ce2c5a0d1d
@ -699,9 +699,6 @@ void ScummEngine::readResTypeList(int id, uint32 tag, const char *name) {
|
||||
}
|
||||
for (i = 0; i < num; i++) {
|
||||
res.roomoffs[id][i] = _fileHandle.readUint32LE();
|
||||
|
||||
if (id == rtRoom && _heversion >= 70)
|
||||
_heV7RoomIntOffsets[i] = res.roomoffs[id][i];
|
||||
}
|
||||
|
||||
if (_heversion >= 70) {
|
||||
@ -733,9 +730,6 @@ void ScummEngine::allocResTypeData(int id, uint32 tag, int num, const char *name
|
||||
|
||||
if (_heversion >= 70) {
|
||||
res.globsize[id] = (uint32 *)calloc(num, sizeof(uint32));
|
||||
|
||||
if (id == rtRoom)
|
||||
_heV7RoomIntOffsets = (uint32 *)calloc(num, sizeof(uint32));
|
||||
}
|
||||
}
|
||||
|
||||
@ -832,7 +826,7 @@ int ScummEngine::loadResource(int type, int idx) {
|
||||
if (_version == 8)
|
||||
fileOffs = 8;
|
||||
else if (_heversion >= 70)
|
||||
fileOffs = _heV7RoomIntOffsets[idx];
|
||||
fileOffs = res.roomoffs[type][idx];
|
||||
else
|
||||
fileOffs = 0;
|
||||
} else {
|
||||
@ -2186,7 +2180,6 @@ void ScummEngine::freeResources() {
|
||||
free(res.globsize[i]);
|
||||
}
|
||||
if (_heversion >= 70) {
|
||||
free(_heV7RoomIntOffsets);
|
||||
free(_heV7RoomOffsets);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user