diff options
author | uruk | 2014-05-29 18:49:45 +0200 |
---|---|---|
committer | uruk | 2014-05-29 18:49:45 +0200 |
commit | 566419f3ad868272df5bce837558592668c5aff6 (patch) | |
tree | da1f23c0185019cd7dafe4b094644827cfcd0d50 /engines | |
parent | e6e0847b7bbbbfee4ff6d4bac997c31a2c32b7b2 (diff) | |
download | scummvm-rg350-566419f3ad868272df5bce837558592668c5aff6.tar.gz scummvm-rg350-566419f3ad868272df5bce837558592668c5aff6.tar.bz2 scummvm-rg350-566419f3ad868272df5bce837558592668c5aff6.zip |
CGE2: Implement snHide().
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cge2/snail.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/cge2/snail.cpp b/engines/cge2/snail.cpp index 3de42ddfc0..45ca715d26 100644 --- a/engines/cge2/snail.cpp +++ b/engines/cge2/snail.cpp @@ -327,7 +327,11 @@ void CGE2Engine::snKill(Sprite *spr) { } void CGE2Engine::snHide(Sprite *spr, int val) { - warning("STUB: CGE2Engine::snHide()"); + if (spr) { + spr->_flags._hide = (val >= 0) ? (val != 0) : (!spr->_flags._hide); + if (spr->_flags._shad) + spr->_prev->_flags._hide = spr->_flags._hide; + } } void CGE2Engine::snMidi(int val) { |