Disabled two cases of findObjectByName() in SCI0 early games
svn-id: r49639
This commit is contained in:
parent
a4ac9347d4
commit
01d53a6216
2 changed files with 6 additions and 4 deletions
|
@ -201,7 +201,7 @@ static void validate_write_var(reg_t *r, reg_t *stack_base, int type, int max, i
|
|||
// stopGroop object, which points to ego, to the new ego object. If this is not
|
||||
// done, ego's movement will not be updated properly, so the result is
|
||||
// unpredictable (for example in LSL5, Patti spins around instead of walking).
|
||||
if (index == 0 && type == VAR_GLOBAL) { // global 0 is ego
|
||||
if (index == 0 && type == VAR_GLOBAL && getSciVersion() > SCI_VERSION_0_EARLY) { // global 0 is ego
|
||||
reg_t stopGroopPos = segMan->findObjectByName("stopGroop");
|
||||
if (!stopGroopPos.isNull()) { // does the game have a stopGroop object?
|
||||
// Find the "client" member variable of the stopGroop object, and update it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue