aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/map.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-01-11 19:30:02 -0500
committerPaul Gilbert2015-01-11 19:30:02 -0500
commit1b3473d3431ae8fcac15526f1a59f1dfd0c9fc58 (patch)
tree7b6d65f429186b8a10edbf1faa4cb043166347c3 /engines/xeen/map.cpp
parent892a504009e0d7d6d6304d485bf2fad9519781e9 (diff)
downloadscummvm-rg350-1b3473d3431ae8fcac15526f1a59f1dfd0c9fc58.tar.gz
scummvm-rg350-1b3473d3431ae8fcac15526f1a59f1dfd0c9fc58.tar.bz2
scummvm-rg350-1b3473d3431ae8fcac15526f1a59f1dfd0c9fc58.zip
XEEN: Implement frame update loop of draw3d
Diffstat (limited to 'engines/xeen/map.cpp')
-rw-r--r--engines/xeen/map.cpp19
1 files changed, 6 insertions, 13 deletions
diff --git a/engines/xeen/map.cpp b/engines/xeen/map.cpp
index 836680c24f..b8ea36b698 100644
--- a/engines/xeen/map.cpp
+++ b/engines/xeen/map.cpp
@@ -810,22 +810,15 @@ void HeadData::synchronize(Common::SeekableReadStream &s) {
/*------------------------------------------------------------------------*/
/**
- * Synchronize data for an entry within an animation entry
- */
-void AnimationFrame::synchronize(Common::SeekableReadStream &s) {
- _left = s.readByte();
- _back = s.readByte();
- _right = s.readByte();
- _front = s.readByte();
-}
-
-/**
* Synchronize data for an animation entry
*/
void AnimationEntry::synchronize(Common::SeekableReadStream &s) {
- _frame1.synchronize(s);
- _flipped.synchronize(s);
- _frame2.synchronize(s);
+ for (int i = 0; i < 4; ++i)
+ _frame1._frames[i] = s.readByte();
+ for (int i = 0; i < 4; ++i)
+ _flipped._flags[i] = s.readByte() != 0;
+ for (int i = 0; i < 4; ++i)
+ _frame2._frames[i] = s.readByte();
}
/**