SCI: Fixed a workaround
This commit is contained in:
parent
747bc75bc7
commit
b3134650df
1 changed files with 4 additions and 3 deletions
|
@ -143,10 +143,11 @@ SegmentRef LocalVariables::dereference(reg_t pointer) {
|
|||
if (ret.maxSize > 0) {
|
||||
ret.reg = &_locals[pointer.offset / 2];
|
||||
} else {
|
||||
// FIXME: Second 660 has to be either fixed or removed
|
||||
if ((g_sci->getEngineState()->currentRoomNumber() == 660 || g_sci->getEngineState()->currentRoomNumber() == 660)
|
||||
if ((g_sci->getEngineState()->currentRoomNumber() == 160 ||
|
||||
g_sci->getEngineState()->currentRoomNumber() == 220)
|
||||
&& g_sci->getGameId() == GID_LAURABOW2) {
|
||||
// Happens in two places during the intro of LB2CD, both from kMemory(peek):
|
||||
// WORKAROUND: Happens in two places during the intro of LB2CD, both
|
||||
// from kMemory(peek):
|
||||
// - room 160: Heap 160 has 83 local variables (0-82), and the game
|
||||
// asks for variables at indices 83 - 90 too.
|
||||
// - room 220: Heap 220 has 114 local variables (0-113), and the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue