diff options
author | Paul Gilbert | 2019-08-30 21:04:07 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-08-30 21:04:07 -0700 |
commit | 0f1722ebce2105485f48f6903c7b02a56ff63a06 (patch) | |
tree | 6afc518789176535de776cbef0058fe67ce03bd2 /engines/xeen/sprites.cpp | |
parent | 1588218f6f7f3c23d8c4d4b4186c51b1bae1100b (diff) | |
download | scummvm-rg350-0f1722ebce2105485f48f6903c7b02a56ff63a06.tar.gz scummvm-rg350-0f1722ebce2105485f48f6903c7b02a56ff63a06.tar.bz2 scummvm-rg350-0f1722ebce2105485f48f6903c7b02a56ff63a06.zip |
XEEN: Fix to use correct drawer for shades, drawer cleanup
Diffstat (limited to 'engines/xeen/sprites.cpp')
-rw-r--r-- | engines/xeen/sprites.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/xeen/sprites.cpp b/engines/xeen/sprites.cpp index fc2159bca9..25b6a04100 100644 --- a/engines/xeen/sprites.cpp +++ b/engines/xeen/sprites.cpp @@ -475,10 +475,10 @@ void SpriteDrawer4::drawPixel(byte *dest, byte pixel) { /*------------------------------------------------------------------------*/ -const uint16 DRAWER5_MASK[4] = { 0x3333, 0x6666, 0x999A, 0xCCCD }; +const uint16 DRAWER5_THRESHOLD[4] = { 0x3333, 0x6666, 0x999A, 0xCCCD }; SpriteDrawer5::SpriteDrawer5(byte *data, size_t filesize, int index) : SpriteDrawer(data, filesize) { - _mask = DRAWER5_MASK[index]; + _threshold = DRAWER5_THRESHOLD[index]; _random1 = g_vm->getRandomNumber(0xffff); _random2 = g_vm->getRandomNumber(0xffff); } @@ -491,7 +491,7 @@ void SpriteDrawer5::drawPixel(byte *dest, byte pixel) { rcr(_random2, flag); _random2 ^= _random1; - if (_random2 > _mask) + if (_random2 > _threshold) *dest = pixel; } |