[Scummvm-cvs-logs] SF.net SVN: scummvm: [26745] scummvm/trunk/engines/agi/view.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Fri May 4 13:00:17 CEST 2007
Revision: 26745
http://scummvm.svn.sourceforge.net/scummvm/?rev=26745&view=rev
Author: thebluegr
Date: 2007-05-04 04:00:16 -0700 (Fri, 04 May 2007)
Log Message:
-----------
Slight optimization
Modified Paths:
--------------
scummvm/trunk/engines/agi/view.cpp
Modified: scummvm/trunk/engines/agi/view.cpp
===================================================================
--- scummvm/trunk/engines/agi/view.cpp 2007-05-04 09:16:55 UTC (rev 26744)
+++ scummvm/trunk/engines/agi/view.cpp 2007-05-04 11:00:16 UTC (rev 26745)
@@ -51,9 +51,8 @@
// 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 = ¤tVl->cel[n];
v->celData = currentVc;
@@ -81,9 +80,8 @@
// 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];
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list