diff options
author | uruk | 2014-06-13 19:52:28 +0200 |
---|---|---|
committer | uruk | 2014-06-13 19:52:28 +0200 |
commit | 0bd781a3dcb844ffc570166ee53084ed1b643c00 (patch) | |
tree | 809e7e5085e7c3bf1958c87f885263df4481c89b /engines | |
parent | 95e3f240d620f5e3788743782ef910446a01ab79 (diff) | |
download | scummvm-rg350-0bd781a3dcb844ffc570166ee53084ed1b643c00.tar.gz scummvm-rg350-0bd781a3dcb844ffc570166ee53084ed1b643c00.tar.bz2 scummvm-rg350-0bd781a3dcb844ffc570166ee53084ed1b643c00.zip |
CGE2: Implement releasePocket().
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cge2/cge2_main.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/cge2/cge2_main.cpp b/engines/cge2/cge2_main.cpp index 032c73cb2a..655910ff2a 100644 --- a/engines/cge2/cge2_main.cpp +++ b/engines/cge2/cge2_main.cpp @@ -685,7 +685,16 @@ void CGE2Engine::loadPos() { } void CGE2Engine::releasePocket(Sprite *spr) { - warning("STUB: CGE2Engine::releasePocket()"); + for (int i = 0; i < 2; i++) { + for (int j = 0; j < kPocketMax; j++) { + Sprite *poc = _heroTab[i]->_pocket[j]; + if (poc == spr) { + spr->_flags._kept = false; + poc = nullptr; + return; + } + } + } } void CGE2Engine::checkSaySwitch() { |