This is the second biggest hack I've ever seen! FlObject 188/189 hack.

svn-id: r6400
This commit is contained in:
James Brown 2003-01-11 18:52:19 +00:00
parent 09445ada17
commit 911353c710

View File

@ -121,6 +121,14 @@ int Scumm::getObjectIndex(int object)
if (_objs[i].obj_nr == object)
return i;
}
// FIXME: Major HACK. This is probably the worst biggest
// hack in the whole engine. It's that bad.
// (Workaround flobject 188/189 not loaded bug)
if (_gameId == GID_CMI && ((object == 188 || object == 189))) {
loadFlObject(object, 3);
return getObjectIndex(object);
}
return -1;
}
}
@ -145,6 +153,7 @@ int Scumm::whereIsObject(int object)
return WIO_FLOBJECT;
return WIO_ROOM;
}
return WIO_NOT_FOUND;
}