<div class="gmail_quote">On Tue, Jul 7, 2009 at 2:18 PM,  <span dir="ltr"><<a href="mailto:dkasak13@users.sourceforge.net">dkasak13@users.sourceforge.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Revision: 42244<br>
          <a href="http://scummvm.svn.sourceforge.net/scummvm/?rev=42244&view=rev" target="_blank">http://scummvm.svn.sourceforge.net/scummvm/?rev=42244&view=rev</a><br>
Author:   dkasak13<br>
Date:     2009-07-07 21:18:28 +0000 (Tue, 07 Jul 2009)<br>
<br>
Log Message:<br>
-----------<br>
* From Game::GameObject removed the following _idxSeq, _numSeq, _animObj, _seqTab (not used anymore), added Common::Array<int> _anims.<br>
* Handled cylic animations properly<br>
* Handled the Z coordinate properly<br>
<br>
Modified Paths:<br>
--------------<br>
    scummvm/branches/gsoc2009-draci/engines/draci/game.cpp<br>
    scummvm/branches/gsoc2009-draci/engines/draci/game.h<br>
    scummvm/branches/gsoc2009-draci/engines/draci/script.cpp<br>
<br>
Modified: scummvm/branches/gsoc2009-draci/engines/draci/game.cpp<br>
===================================================================<br>
--- scummvm/branches/gsoc2009-draci/engines/draci/game.cpp      2009-07-07 21:11:36 UTC (rev 42243)<br>
+++ scummvm/branches/gsoc2009-draci/engines/draci/game.cpp      2009-07-07 21:18:28 UTC (rev 42244)<br>@@ -211,10 +211,10 @@<br>
        // FIXME: handle these properly<br>
        animationReader.readByte(); // Memory logic field, not used<br>
        animationReader.readByte(); // Disable erasing field, not used<br>
-       animationReader.readByte(); // Cyclic field, not used<br>
+       bool cyclic = animationReader.readByte(); // Cyclic field, not used</blockquote><div><br></div><div>remove "not used" from the comment</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Modified: scummvm/branches/gsoc2009-draci/engines/draci/script.cpp<br>
===================================================================<br>
--- scummvm/branches/gsoc2009-draci/engines/draci/script.cpp    2009-07-07 21:11:36 UTC (rev 42243)<br>
+++ scummvm/branches/gsoc2009-draci/engines/draci/script.cpp    2009-07-07 21:18:28 UTC (rev 42244)<br>
@@ -226,7 +226,8 @@<br>
<br>
        GameObject *obj = _vm->_game->getObject(objID);<br>
<br>
-       obj->_seqTab[animID - obj->_idxSeq] = _vm->_game->loadAnimation(animID);<br>
+       _vm->_game->loadAnimation(animID, obj->_priority);</blockquote><div><br></div><div>rename _priority to _z or something.  priority was our old player's name and should be abandoned. similarly, in other modules, where we used "mask", use overlay or any better name you could come up with.</div>

<div><br></div><div>-- </div></div>Robert Špalek <<a href="mailto:rspalek@gmail.com">rspalek@gmail.com</a>><br>