mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
Slight optimization
svn-id: r26745
This commit is contained in:
parent
91fb83a72f
commit
0ba5afa585
@ -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)
|
// 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
|
// 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
|
// Check below in lSetLoop for the second part of this workaround
|
||||||
if (getFeatures() & GF_KQ4)
|
if (getFeatures() & GF_KQ4 && !(v->flags & UPDATE) && (v->currentView == 172))
|
||||||
if (!(v->flags & UPDATE) && (v->currentView == 172))
|
return;
|
||||||
return;
|
|
||||||
|
|
||||||
currentVc = ¤tVl->cel[n];
|
currentVc = ¤tVl->cel[n];
|
||||||
v->celData = currentVc;
|
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.
|
// 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
|
// Refer above to function lSetCel for the first part and an explanation
|
||||||
// FIXME: Remove this workaround
|
// FIXME: Remove this workaround
|
||||||
if (getFeatures() & GF_KQ4)
|
if (getFeatures() & GF_KQ4 && !(v->flags & UPDATE) && (v->currentView == 172))
|
||||||
if (!(v->flags & UPDATE) && (v->currentView == 172))
|
return;
|
||||||
return;
|
|
||||||
|
|
||||||
v->loopData = &_game.views[v->currentView].loop[n];
|
v->loopData = &_game.views[v->currentView].loop[n];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user