aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorFilippos Karapetis2007-05-04 11:00:16 +0000
committerFilippos Karapetis2007-05-04 11:00:16 +0000
commit0ba5afa585b1d05960b26e6894b00b29d8a3b4c8 (patch)
tree838c12661ccd685fed2be93bddfa198dea9fbf15 /engines/agi
parent91fb83a72ffb9f28b21ebc4c7e4a1c8bffb97761 (diff)
downloadscummvm-rg350-0ba5afa585b1d05960b26e6894b00b29d8a3b4c8.tar.gz
scummvm-rg350-0ba5afa585b1d05960b26e6894b00b29d8a3b4c8.tar.bz2
scummvm-rg350-0ba5afa585b1d05960b26e6894b00b29d8a3b4c8.zip
Slight optimization
svn-id: r26745
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/view.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/agi/view.cpp b/engines/agi/view.cpp
index 7adf09378c..655e76ea85 100644
--- a/engines/agi/view.cpp
+++ b/engines/agi/view.cpp
@@ -51,9 +51,8 @@ void AgiEngine::lSetCel(VtEntry *v, int n) {
// It seems there's either a bug with KQ4's logic script 120 (the intro script)
// or flag 64 is not set correctly, which causes the erroneous behavior from the actors
// Check below in lSetLoop for the second part of this workaround
- if (getFeatures() & GF_KQ4)
- if (!(v->flags & UPDATE) && (v->currentView == 172))
- return;
+ if (getFeatures() & GF_KQ4 && !(v->flags & UPDATE) && (v->currentView == 172))
+ return;
currentVc = &currentVl->cel[n];
v->celData = currentVc;
@@ -81,9 +80,8 @@ void AgiEngine::lSetLoop(VtEntry *v, int n) {
// WORKAROUND: This is the second part of the hack to fix the KQ4 introduction.
// Refer above to function lSetCel for the first part and an explanation
// FIXME: Remove this workaround
- if (getFeatures() & GF_KQ4)
- if (!(v->flags & UPDATE) && (v->currentView == 172))
- return;
+ if (getFeatures() & GF_KQ4 && !(v->flags & UPDATE) && (v->currentView == 172))
+ return;
v->loopData = &_game.views[v->currentView].loop[n];
}