aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorColin Snover2017-11-15 19:20:59 -0600
committerEugene Sandulenko2017-11-18 22:35:12 +0100
commit6a13592633a6a4cf935409edd1c5504ef7dfa75e (patch)
tree4ba5678877825cf45c4287809b73d20d1e235d9b /engines
parentd2249a1bed00bae4a7e0c78d66df0a04f927b673 (diff)
downloadscummvm-rg350-6a13592633a6a4cf935409edd1c5504ef7dfa75e.tar.gz
scummvm-rg350-6a13592633a6a4cf935409edd1c5504ef7dfa75e.tar.bz2
scummvm-rg350-6a13592633a6a4cf935409edd1c5504ef7dfa75e.zip
FULLPIPE: Disable some unused code paths
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/anihandler.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/engines/fullpipe/anihandler.cpp b/engines/fullpipe/anihandler.cpp
index b7489b70a6..b847986047 100644
--- a/engines/fullpipe/anihandler.cpp
+++ b/engines/fullpipe/anihandler.cpp
@@ -33,17 +33,21 @@ void AniHandler::detachAllObjects() {
_items.clear();
}
-MessageQueue *AniHandler::makeQueue(StaticANIObject *ani, int staticsIndex, int staticsId, int *resStatId, Common::Point **pointArr) {
- debugC(4, kDebugPathfinding, "AniHandler::makeQueue(*%d, %d, %d, res, point)", ani->_id, staticsIndex, staticsId);
+MessageQueue *AniHandler::makeQueue(StaticANIObject *ani, int staticsIndex, int, int *, Common::Point **) {
+ debugC(4, kDebugPathfinding, "AniHandler::makeQueue(*%d, %d, id, res, point)", ani->_id, staticsIndex);
int idx = getIndex(ani->_id);
if (idx == -1)
return 0;
+#if 0
int stid = staticsId;
if (!staticsId) {
+#else
+ int stid;
+#endif
if (ani->_movement) {
stid = ani->_movement->_staticsObj2->_staticsId;
} else {
@@ -52,7 +56,9 @@ MessageQueue *AniHandler::makeQueue(StaticANIObject *ani, int staticsIndex, int
stid = ani->_statics->_staticsId;
}
+#if 0
}
+#endif
if (stid == staticsIndex)
return new MessageQueue(g_fp->_globalMessageQueueList->compact());
@@ -79,6 +85,7 @@ MessageQueue *AniHandler::makeQueue(StaticANIObject *ani, int staticsIndex, int
point = _items[idx].subItems[subidx].movement->calcSomeXY(0, -1);
+#if 0
if (pointArr) {
int sz;
@@ -91,8 +98,11 @@ MessageQueue *AniHandler::makeQueue(StaticANIObject *ani, int staticsIndex, int
ex->_messageNum = _items[idx].subItems[subidx].movement->_id;
} else {
+#endif
ex = new ExCommand(ani->_id, 1, _items[idx].subItems[subidx].movement->_id, 0, 0, 0, 1, 0, 0, 0);
+#if 0
}
+#endif
ex->_param = ani->_odelay;
ex->_field_3C = 1;
@@ -100,8 +110,10 @@ MessageQueue *AniHandler::makeQueue(StaticANIObject *ani, int staticsIndex, int
mq->addExCommandToEnd(ex);
+#if 0
if (resStatId)
*resStatId = _items[idx].subItems[subidx].movement->_id;
+#endif
startidx = _items[idx].subItems[subidx].staticsIndex;