mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-28 20:55:19 +00:00
Check gameID for Zak TV fix
svn-id: r4266
This commit is contained in:
parent
b2882e1661
commit
5502291f7a
@ -1391,13 +1391,15 @@ void Scumm::o5_getDist()
|
||||
o2 = getVarOrDirectWord(0x40);
|
||||
r = getObjActToObjActDist(o1, o2);
|
||||
|
||||
/* Fix for monkey 2, dunno what's wrong in scummvm */
|
||||
/* FIXME: Fix for monkey 2, dunno what's wrong in scummvm */
|
||||
if (_gameId == GID_MONKEY2 && vm.slot[_currentScript].number == 40
|
||||
&& r < 60)
|
||||
r = 60;
|
||||
|
||||
if (r > 0) // FIXME: Fixes several off-by-one errors (eg,
|
||||
r--; // zak's tv). Find real cause of bug.
|
||||
/* FIXME: Patch to allow TV cord to be picked up in Zak256 */
|
||||
if ((_gameId == GID_ZAK256) && (r > 0))
|
||||
r--;
|
||||
|
||||
setResult(r);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user