cleanup
svn-id: r6140
This commit is contained in:
parent
7c7af18bc9
commit
447ab20369
4 changed files with 54 additions and 50 deletions
|
@ -131,9 +131,8 @@ void Scumm::stopObjectScript(int script)
|
|||
ss = &vm.slot[1];
|
||||
|
||||
for (i = 1; i < NUM_SCRIPT_SLOT; i++, ss++) {
|
||||
if (script == ss->number && (ss->where == WIO_ROOM ||
|
||||
ss->where == WIO_INVENTORY || ss->where == WIO_FLOBJECT)
|
||||
&& ss->status != ssDead) {
|
||||
if (script == ss->number && ss->status != ssDead &&
|
||||
(ss->where == WIO_ROOM || ss->where == WIO_INVENTORY || ss->where == WIO_FLOBJECT)) {
|
||||
if (ss->cutsceneOverride)
|
||||
error("Object %d stopped with active cutscene/override", script);
|
||||
ss->number = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue