aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2/snail.cpp
diff options
context:
space:
mode:
authoruruk2014-05-29 20:05:51 +0200
committeruruk2014-05-29 20:05:51 +0200
commit60825760fd6eaa4a50c9a9e0bd9a2a5b0380d95c (patch)
treec2dd9c75242ff0ecb831870e580a611aec324cf5 /engines/cge2/snail.cpp
parent7c73ce5d8b516976180aa38e76f75e88b1cbc474 (diff)
downloadscummvm-rg350-60825760fd6eaa4a50c9a9e0bd9a2a5b0380d95c.tar.gz
scummvm-rg350-60825760fd6eaa4a50c9a9e0bd9a2a5b0380d95c.tar.bz2
scummvm-rg350-60825760fd6eaa4a50c9a9e0bd9a2a5b0380d95c.zip
CGE2: Implement snGhost().
Also implement Sprite::ghost().
Diffstat (limited to 'engines/cge2/snail.cpp')
-rw-r--r--engines/cge2/snail.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/cge2/snail.cpp b/engines/cge2/snail.cpp
index d92862a1ed..ede6206d1f 100644
--- a/engines/cge2/snail.cpp
+++ b/engines/cge2/snail.cpp
@@ -521,7 +521,12 @@ void CGE2Engine::snRoom(Sprite *spr, int val) {
}
void CGE2Engine::snGhost(Bitmap *bmp) {
- warning("STUB: CGE2Engine::snGhost()");
+ V2D p(this, *bmp->_v & 0xFFFF, *bmp->_v >> 16);
+ bmp->hide(p.x, p.y);
+ delete bmp->_b;
+ bmp->_v = nullptr;
+ bmp->_b = nullptr;
+ delete bmp;
}
void CGE2Engine::hide1(Sprite *spr) {