aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/gfx.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-09-10 22:36:14 +0300
committerEugene Sandulenko2013-09-10 22:36:14 +0300
commit7509ffec339ddd09fe9109717a5c35dbfe127671 (patch)
treeac209d77e70a6241f71d3fb7e7f6eafff87c6850 /engines/fullpipe/gfx.cpp
parentf628b7e20d48402be093e1b334a416a0f381f94c (diff)
downloadscummvm-rg350-7509ffec339ddd09fe9109717a5c35dbfe127671.tar.gz
scummvm-rg350-7509ffec339ddd09fe9109717a5c35dbfe127671.tar.bz2
scummvm-rg350-7509ffec339ddd09fe9109717a5c35dbfe127671.zip
FULLPIPE: Move GameObject::canInteractAny() out of the class
Diffstat (limited to 'engines/fullpipe/gfx.cpp')
-rw-r--r--engines/fullpipe/gfx.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index c6024d15e0..e16d56cd8d 100644
--- a/engines/fullpipe/gfx.cpp
+++ b/engines/fullpipe/gfx.cpp
@@ -343,28 +343,6 @@ void GameObject::renumPictures(CPtrList *lst) {
free(buf);
}
-bool GameObject::canInteractAny(GameObject *obj2, int invId) {
- int sceneId = 0;
-
- if (g_fullpipe->_currentScene)
- sceneId = g_fullpipe->_currentScene->_sceneId;
-
- CInteractionController *intC = getGameLoaderInteractionController();
- for (CObList::iterator i = intC->_interactions.begin(); i != intC->_interactions.end(); ++i) {
- CInteraction *intr = (CInteraction *)*i;
-
- if (intr->_sceneId > 0 && intr->_sceneId != sceneId)
- break;
-
- if (invId == -3) {
- invId = getGameLoaderInventory()->getSelectedItemId();
- }
- if (intr->canInteract(this, obj2, invId))
- return true;
- }
- return false;
-}
-
bool GameObject::getPicAniInfo(PicAniInfo *info) {
if (_objtype == kObjTypePictureObject) {
info->type = 2;