diff options
author | uruk | 2014-06-13 17:02:17 +0200 |
---|---|---|
committer | uruk | 2014-06-13 17:02:17 +0200 |
commit | bad8e7ea26a645affa74e2971fdac87e4afc20e7 (patch) | |
tree | ac10c7c60b41c5f99a1c93eb8324ac6be12243d2 /engines/cge2 | |
parent | 2ad2be370e6464a660170ff19a0c74d6fb77e055 (diff) | |
download | scummvm-rg350-bad8e7ea26a645affa74e2971fdac87e4afc20e7.tar.gz scummvm-rg350-bad8e7ea26a645affa74e2971fdac87e4afc20e7.tar.bz2 scummvm-rg350-bad8e7ea26a645affa74e2971fdac87e4afc20e7.zip |
CGE2: Fix Sprite::ghost and snGhost().
Diffstat (limited to 'engines/cge2')
-rw-r--r-- | engines/cge2/snail.cpp | 2 | ||||
-rw-r--r-- | engines/cge2/vga13h.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/engines/cge2/snail.cpp b/engines/cge2/snail.cpp index 07cded033e..c086d2b17b 100644 --- a/engines/cge2/snail.cpp +++ b/engines/cge2/snail.cpp @@ -565,7 +565,7 @@ void CGE2Engine::snDim(Sprite *spr, int val) { } void CGE2Engine::snGhost(Bitmap *bmp) { - V2D p(this, *bmp->_v & 0xFFFF, *bmp->_v >> 16); + V2D p(this, bmp->_map & 0xFFFF, bmp->_map >> 16); bmp->hide(p.x, p.y); delete[] bmp->_b; bmp->_v = nullptr; diff --git a/engines/cge2/vga13h.cpp b/engines/cge2/vga13h.cpp index 28f738c6c7..24987813a5 100644 --- a/engines/cge2/vga13h.cpp +++ b/engines/cge2/vga13h.cpp @@ -641,6 +641,7 @@ BitmapPtr Sprite::ghost() { uint8 *v = new uint8; *v = (e->_p1.y << 16) + e->_p1.x; bmp->_v = v; + bmp->_map = (e->_p1.y << 16) + e->_p1.x; return bmp; } |