From 6a13592633a6a4cf935409edd1c5504ef7dfa75e Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Wed, 15 Nov 2017 19:20:59 -0600 Subject: FULLPIPE: Disable some unused code paths --- engines/fullpipe/anihandler.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'engines') 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; -- cgit v1.2.3