diff options
author | Retro-Junk | 2016-09-27 23:37:33 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-27 22:55:00 +0200 |
commit | 5de239e3c631943c37f3de959116e9749efa6098 (patch) | |
tree | 69997616fe625052147ca661a0e2070270fc0500 /engines/fullpipe/scene.h | |
parent | a687ae3daf3210c9fb66a1981288caa387ff995a (diff) | |
download | scummvm-rg350-5de239e3c631943c37f3de959116e9749efa6098.tar.gz scummvm-rg350-5de239e3c631943c37f3de959116e9749efa6098.tar.bz2 scummvm-rg350-5de239e3c631943c37f3de959116e9749efa6098.zip |
FULLPIPE: Revert to original bubble sort algorithm for scene objects
Diffstat (limited to 'engines/fullpipe/scene.h')
-rw-r--r-- | engines/fullpipe/scene.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/fullpipe/scene.h b/engines/fullpipe/scene.h index 1e2dae81fe..5ff24074b2 100644 --- a/engines/fullpipe/scene.h +++ b/engines/fullpipe/scene.h @@ -81,9 +81,14 @@ class Scene : public Background { void stopAllSounds(); private: +#if 0 static bool compareObjPriority(const void *p1, const void *p2); void objectList_sortByPriority(Common::Array<StaticANIObject *> &list, bool skipFirst = false); void objectList_sortByPriority(Common::Array<PictureObject *> &list, bool skipFirst = false); +#else + template<typename T> + void objectList_sortByPriority(Common::Array<T*> &list, int startIndex = 0); +#endif }; class SceneTag : public CObject { |