aboutsummaryrefslogtreecommitdiff
path: root/engines/composer
diff options
context:
space:
mode:
authorAlyssa Milburn2011-07-19 16:11:27 +0200
committerAlyssa Milburn2011-07-19 16:11:27 +0200
commit2fc49ba2b958f664165b9a0b16789696c30a8a3c (patch)
tree9deb5b1cb7e51404874bd5d069978c4c9970b219 /engines/composer
parent3f67e45f243e3960c6fbac9e9db2395035e0a8e3 (diff)
downloadscummvm-rg350-2fc49ba2b958f664165b9a0b16789696c30a8a3c.tar.gz
scummvm-rg350-2fc49ba2b958f664165b9a0b16789696c30a8a3c.tar.bz2
scummvm-rg350-2fc49ba2b958f664165b9a0b16789696c30a8a3c.zip
COMPOSER: Implement kFuncClearSprites.
Diffstat (limited to 'engines/composer')
-rw-r--r--engines/composer/graphics.cpp2
-rw-r--r--engines/composer/scripting.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/composer/graphics.cpp b/engines/composer/graphics.cpp
index e6b87478c7..65a12dd6a8 100644
--- a/engines/composer/graphics.cpp
+++ b/engines/composer/graphics.cpp
@@ -419,7 +419,7 @@ void ComposerEngine::addSprite(uint16 id, uint16 animId, uint16 zorder, const Co
void ComposerEngine::removeSprite(uint16 id, uint16 animId) {
for (Common::List<Sprite>::iterator i = _sprites.begin(); i != _sprites.end(); i++) {
- if (id && i->_id != id)
+ if (!i->_id || (id && i->_id != id))
continue;
if (i->_animId && animId && (i->_animId != animId))
continue;
diff --git a/engines/composer/scripting.cpp b/engines/composer/scripting.cpp
index ff5391eceb..5df83e4f8e 100644
--- a/engines/composer/scripting.cpp
+++ b/engines/composer/scripting.cpp
@@ -660,8 +660,8 @@ int16 ComposerEngine::scriptFuncCall(uint16 id, int16 param1, int16 param2, int1
warning("ignoring kFuncSetBackgroundColor(%d)", param1);
return 0;
case kFuncClearSprites:
- // TODO
- warning("ignoring kFuncClearSprites()");
+ debug(3, "kFuncClearSprites()");
+ removeSprite(0, 0);
return 0;
case kFuncAddSprite:
{