diff options
author | Paul Gilbert | 2014-11-10 18:48:16 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-12-12 22:30:23 -0500 |
commit | fa46257a77c462c92c6c6c5f7af2ef55dbb0d802 (patch) | |
tree | 2cf2ed3b1d4d4daf3c7d4c1551a1158eac1d9e9b /engines/access | |
parent | a97bbb86c4c40a10e67b358372743c919a5ee59d (diff) | |
download | scummvm-rg350-fa46257a77c462c92c6c6c5f7af2ef55dbb0d802.tar.gz scummvm-rg350-fa46257a77c462c92c6c6c5f7af2ef55dbb0d802.tar.bz2 scummvm-rg350-fa46257a77c462c92c6c6c5f7af2ef55dbb0d802.zip |
ACCESS: Fix item Z ordering issue causing flickering in airplane rear scene
Diffstat (limited to 'engines/access')
-rw-r--r-- | engines/access/asurface.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/access/asurface.cpp b/engines/access/asurface.cpp index d36f6e4ba1..dbbf119171 100644 --- a/engines/access/asurface.cpp +++ b/engines/access/asurface.cpp @@ -87,7 +87,8 @@ ImageEntry::ImageEntry() { /*------------------------------------------------------------------------*/ static bool sortImagesY(const ImageEntry &ie1, const ImageEntry &ie2) { - return (ie1._position.y + ie1._offsetY) < (ie2._position.y + ie2._offsetY); + int v = (ie1._position.y + ie1._offsetY) - (ie2._position.y + ie2._offsetY); + return (v < 0) || (v == 0 && ie1._position.y <= ie2._position.y); } void ImageEntryList::addToList(ImageEntry &ie) { |