From 2a6a79b1673e274420ca8c28f40f9855b1c6134f Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 27 Oct 2014 12:28:18 +0200 Subject: SAGA: Remove the buggy actor swapping fixup code for IHNM This was a hack that was implemented while IHNM was being developed. That code should no longer be needed. If this issue does occur again, the actual cause should be investigated, instead of hiding it with workarounds. The code was buggy anyway, as _currentProtag was not initialized properly --- engines/saga/sfuncs.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'engines/saga/sfuncs.cpp') diff --git a/engines/saga/sfuncs.cpp b/engines/saga/sfuncs.cpp index cb963e23ac..2175d8f40a 100644 --- a/engines/saga/sfuncs.cpp +++ b/engines/saga/sfuncs.cpp @@ -748,14 +748,10 @@ void Script::sfSwapActors(SCRIPTFUNC_PARAMS) { actor1->_flags &= ~kProtagonist; actor2->_flags |= kProtagonist; _vm->_actor->_protagonist = _vm->_actor->_centerActor = actor2; - if (_vm->getGameId() == GID_IHNM) - _vm->_scene->setProtag(actorId2); } else if (actor2->_flags & kProtagonist) { actor2->_flags &= ~kProtagonist; actor1->_flags |= kProtagonist; _vm->_actor->_protagonist = _vm->_actor->_centerActor = actor1; - if (_vm->getGameId() == GID_IHNM) - _vm->_scene->setProtag(actorId1); } } -- cgit v1.2.3