From 74b662516dec82d17d897510e7ef3a322e7fdd26 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 28 Jul 2013 15:53:43 +0300 Subject: FULLPIPE: Implemented StaticANIObject::countMovements() --- engines/fullpipe/stateloader.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'engines/fullpipe/stateloader.cpp') diff --git a/engines/fullpipe/stateloader.cpp b/engines/fullpipe/stateloader.cpp index 82c72b8eb9..6470b1c687 100644 --- a/engines/fullpipe/stateloader.cpp +++ b/engines/fullpipe/stateloader.cpp @@ -384,6 +384,16 @@ bool CGameVar::addSubVar(CGameVar *subvar) { return false; } +int CGameVar::getSubVarsCount() { + int res; + CGameVar *sub = _subVars; + + for (res = 0; sub; res++) + sub = sub->_nextVarObj; + + return res; +} + Sc2::Sc2() { _sceneId = 0; _field_2 = 0; -- cgit v1.2.3