diff options
author | johndoe123 | 2014-04-15 13:50:05 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 60600191a07fe8e7f4945b5dab63b5b374111ed4 (patch) | |
tree | 02b0a8e0db3dc5e095b2b93fedb0e1f576048f1a /engines/illusions/updatefunctions.cpp | |
parent | 1f74de6a4679cecba4fd77e9c79cfaee9c3dd0f6 (diff) | |
download | scummvm-rg350-60600191a07fe8e7f4945b5dab63b5b374111ed4.tar.gz scummvm-rg350-60600191a07fe8e7f4945b5dab63b5b374111ed4.tar.bz2 scummvm-rg350-60600191a07fe8e7f4945b5dab63b5b374111ed4.zip |
ILLUSIONS: Use the UpdateFunctions class for update routines
Diffstat (limited to 'engines/illusions/updatefunctions.cpp')
-rw-r--r-- | engines/illusions/updatefunctions.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/illusions/updatefunctions.cpp b/engines/illusions/updatefunctions.cpp index 3a3aadf872..e0cc775eb9 100644 --- a/engines/illusions/updatefunctions.cpp +++ b/engines/illusions/updatefunctions.cpp @@ -73,4 +73,11 @@ void UpdateFunctions::update() { } +void UpdateFunctions::terminateByScene(uint32 sceneId) { + UpdateFunctionListIterator it = _updateFunctions.begin(); + while (it != _updateFunctions.end()) + if ((*it)->_tag == sceneId) + (*it)->terminate(); +} + } // End of namespace Illusions |