From d6d9967201af55cf376e54b4a3a35d2c2bd5e6d9 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 31 Aug 2016 22:40:45 +0200 Subject: FULLPIPE: Fixed Behaviour methods --- engines/fullpipe/behavior.cpp | 4 ++-- engines/fullpipe/scenes/scene03.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/fullpipe') diff --git a/engines/fullpipe/behavior.cpp b/engines/fullpipe/behavior.cpp index 4f70553033..92fb952605 100644 --- a/engines/fullpipe/behavior.cpp +++ b/engines/fullpipe/behavior.cpp @@ -206,7 +206,7 @@ void BehaviorManager::setFlagByStaticAniObject(StaticANIObject *ani, int flag) { if (ani == beh->_ani) { if (flag) - beh->_flags &= 0xfe; + beh->_flags &= 0xfffffffe; else beh->_flags |= 1; } @@ -311,7 +311,7 @@ BehaviorAnim::BehaviorAnim(GameVar *var, Scene *sc, StaticANIObject *ani, int *m _staticsId = 0; _movesCount = 0; - *minDelay = 100000000; + *minDelay = 0xffffffff; int totalPercent = 0; _flags = 0; diff --git a/engines/fullpipe/scenes/scene03.cpp b/engines/fullpipe/scenes/scene03.cpp index 1cb6390022..cf0a90fcad 100644 --- a/engines/fullpipe/scenes/scene03.cpp +++ b/engines/fullpipe/scenes/scene03.cpp @@ -58,6 +58,7 @@ void scene03_initScene(Scene *sc) { inv->addItem(ANI_INV_EGGCOIN, 1); inv->addItem(ANI_INV_EGGBOOT, 1); inv->addItem(ANI_INV_EGGGLS, 1); + inv->rebuildItemRects(); #endif g_vars->scene03_eggeater = sc->getStaticANIObject1ById(ANI_EGGEATER, -1); -- cgit v1.2.3