diff options
author | Johannes Schickel | 2011-04-13 17:08:16 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-04-13 18:26:12 +0200 |
commit | 6db40e0c6c6c575696a7eaaa44b68c7579664d36 (patch) | |
tree | d3629eff596b24937f137da1561d47b2a778ecf3 /engines/tsage/ringworld_scenes3.cpp | |
parent | 0234c9ff95e3456bdb2c0eb0f2763516f6748c29 (diff) | |
download | scummvm-rg350-6db40e0c6c6c575696a7eaaa44b68c7579664d36.tar.gz scummvm-rg350-6db40e0c6c6c575696a7eaaa44b68c7579664d36.tar.bz2 scummvm-rg350-6db40e0c6c6c575696a7eaaa44b68c7579664d36.zip |
TSAGE: Cleanup custom List usage.
This makes the code use Common::List for all cases where synchronization can
not be done with tSage::List::synchronise. Furthermore I renamed the custom
List class to SynchronisedList to stress its purpose.
I also removed clear2, contains and forEach and replaced them with algorithm
usage from Common:: or in the case of "contains" replaced them with a simple
inline function which uses Common::find.
Diffstat (limited to 'engines/tsage/ringworld_scenes3.cpp')
-rw-r--r-- | engines/tsage/ringworld_scenes3.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tsage/ringworld_scenes3.cpp b/engines/tsage/ringworld_scenes3.cpp index 00cd82bd2a..27ddbb4334 100644 --- a/engines/tsage/ringworld_scenes3.cpp +++ b/engines/tsage/ringworld_scenes3.cpp @@ -2714,7 +2714,7 @@ void Scene2200::Action3::signal() { _actionIndex = 8; setDelay(5); } else { - for (List<SceneObject *>::iterator i = _globals->_sceneObjects->begin(); + for (SynchronisedList<SceneObject *>::iterator i = _globals->_sceneObjects->begin(); i != _globals->_sceneObjects->end(); ++i) { (*i)->hide(); } @@ -2751,7 +2751,7 @@ void Scene2200::Action3::signal() { setDelay(5); break; case 7: - for (List<SceneObject *>::iterator i = _globals->_sceneObjects->begin(); + for (SynchronisedList<SceneObject *>::iterator i = _globals->_sceneObjects->begin(); i != _globals->_sceneObjects->end(); ++i) (*i)->show(); |