mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Fix regression in AppleII/C64 versions of Maniac Mansion.
svn-id: r38999
This commit is contained in:
@@ -589,9 +589,11 @@ void ScummEngine::drawObject(int obj, int arg) {
|
||||
if (width == 0 || xpos > _screenEndStrip || xpos + width < _screenStartStrip)
|
||||
return;
|
||||
|
||||
ptr = getOBIMFromObjectData(od);
|
||||
ptr = getObjectImage(ptr, getState(od.obj_nr));
|
||||
// For objects without image in Apple II & Commodore 64 versions of Maniac Mansion
|
||||
if (_game.version == 0 && od.OBIMoffset == 0)
|
||||
return;
|
||||
|
||||
ptr = getObjectImage(getOBIMFromObjectData(od), getState(od.obj_nr));
|
||||
if (!ptr)
|
||||
return;
|
||||
|
||||
@@ -1221,10 +1223,6 @@ byte *ScummEngine::getOBCDFromObject(int obj) {
|
||||
const byte *ScummEngine::getOBIMFromObjectData(const ObjectData &od) {
|
||||
const byte *ptr;
|
||||
|
||||
// For objects without image in C64 version of Maniac Mansion
|
||||
if (_game.version == 0 && od.OBIMoffset == 0)
|
||||
return NULL;
|
||||
|
||||
if (od.fl_object_index) {
|
||||
ptr = getResourceAddress(rtFlObject, od.fl_object_index);
|
||||
ptr = findResource(MKID_BE('OBIM'), ptr);
|
||||
|
||||
Reference in New Issue
Block a user