aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2014-06-05 07:48:03 +0200
committerStrangerke2014-06-05 07:48:03 +0200
commitb404455eaf3fc5b88aaad4dac7190a9e5217c3ec (patch)
tree50b76c2ceed0697634bfa57b2bf0cc594ca58b37 /engines
parentc6a2d86be7097e8c86291c4b2b2b27218b34be9a (diff)
downloadscummvm-rg350-b404455eaf3fc5b88aaad4dac7190a9e5217c3ec.tar.gz
scummvm-rg350-b404455eaf3fc5b88aaad4dac7190a9e5217c3ec.tar.bz2
scummvm-rg350-b404455eaf3fc5b88aaad4dac7190a9e5217c3ec.zip
MADS: remove a magic value, use _transparencyIndex
Diffstat (limited to 'engines')
-rw-r--r--engines/mads/sprites.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/mads/sprites.cpp b/engines/mads/sprites.cpp
index f5c2792a70..cd358077b5 100644
--- a/engines/mads/sprites.cpp
+++ b/engines/mads/sprites.cpp
@@ -54,14 +54,14 @@ typedef Common::List<DepthEntry> DepthList;
/*------------------------------------------------------------------------*/
-MSprite::MSprite()
- : MSurface() {
+MSprite::MSprite() : MSurface() {
+ _transparencyIndex = TRANSPARENT_COLOR_INDEX;
}
MSprite::MSprite(Common::SeekableReadStream *source, const Common::Array<RGB6> &palette,
const Common::Rect &bounds)
: MSurface(bounds.width(), bounds.height()),
- _offset(Common::Point(bounds.left, bounds.top)), _transparencyIndex(0xFF) {
+ _offset(Common::Point(bounds.left, bounds.top)), _transparencyIndex(TRANSPARENT_COLOR_INDEX) {
// Load the sprite data
loadSprite(source, palette);
}
@@ -133,7 +133,7 @@ void MSprite::loadSprite(Common::SeekableReadStream *source,
}
byte MSprite::getTransparencyIndex() const {
- return TRANSPARENT_COLOR_INDEX;
+ return _transparencyIndex;
}
/*------------------------------------------------------------------------*/