diff options
| author | Simei Yin | 2017-08-08 10:45:06 +0200 | 
|---|---|---|
| committer | Simei Yin | 2017-08-08 14:08:29 +0200 | 
| commit | cd0052155275f8cdb667f0ddfa6c66aaac66d318 (patch) | |
| tree | d8ccafb88835149e9c99aa4f11fa124419e4112c | |
| parent | d7778dc182dbb1da0985c22b6f31b6ae8478b044 (diff) | |
| download | scummvm-rg350-cd0052155275f8cdb667f0ddfa6c66aaac66d318.tar.gz scummvm-rg350-cd0052155275f8cdb667f0ddfa6c66aaac66d318.tar.bz2 scummvm-rg350-cd0052155275f8cdb667f0ddfa6c66aaac66d318.zip | |
SLUDGE: Fix default sprite depth
| -rw-r--r-- | engines/sludge/sprites.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/engines/sludge/sprites.cpp b/engines/sludge/sprites.cpp index ed5691e675..613a2e0486 100644 --- a/engines/sludge/sprites.cpp +++ b/engines/sludge/sprites.cpp @@ -390,7 +390,7 @@ bool GraphicsManager::scaleSprite(Sprite &single, const SpritePalette &fontPal,  		Graphics::TransparentSurface tmp(single.surface, false);  		tmp.blit(_renderSurface, x1, y1, (mirror ? Graphics::FLIP_H : Graphics::FLIP_NONE), nullptr, spriteColor, diffX, diffY);  	} else { -		int d = ((!(thisPerson->extra & EXTRA_NOZB)) && _zBuffer->numPanels) ? y + _cameraY : _sceneHeight + 1; +		int d = ((!(thisPerson->extra & EXTRA_NOZB)) && _zBuffer->numPanels) ? y + _cameraY : 0;  		addSpriteDepth(&single.surface, d, x1, y1, (mirror ? Graphics::FLIP_H : Graphics::FLIP_NONE), diffX, diffY, spriteColor);  	} | 
