summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-06-01 20:28:04 +0200
committeraap <aap@papnet.eu>2020-06-01 20:32:43 +0200
commitd8272b8812fb7e5b6a6045a796c535d10ebb95c2 (patch)
tree81402ea6f179b491284f13ef5f9d2dba0a39bd7e /src/core
parentMerge branch 'miami' of github.com:GTAmodding/re3 into miami (diff)
downloadre3-d8272b8812fb7e5b6a6045a796c535d10ebb95c2.tar
re3-d8272b8812fb7e5b6a6045a796c535d10ebb95c2.tar.gz
re3-d8272b8812fb7e5b6a6045a796c535d10ebb95c2.tar.bz2
re3-d8272b8812fb7e5b6a6045a796c535d10ebb95c2.tar.lz
re3-d8272b8812fb7e5b6a6045a796c535d10ebb95c2.tar.xz
re3-d8272b8812fb7e5b6a6045a796c535d10ebb95c2.tar.zst
re3-d8272b8812fb7e5b6a6045a796c535d10ebb95c2.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/common.h b/src/core/common.h
index ed331bbb..cc570bef 100644
--- a/src/core/common.h
+++ b/src/core/common.h
@@ -29,14 +29,14 @@
#define STREAMFILE(str) (((rw::StreamFile*)(str))->file)
#define HIERNODEINFO(hier) ((hier)->nodeInfo)
#define HIERNODEID(hier, i) ((hier)->nodeInfo[i].id)
-#define HANIMFRAMES(anim) ((anim)->keyframes)
+#define HANIMFRAME(anim, i) ((RwUInt8*)(anim)->keyframes + (i)*(anim)->interpInfo->animKeyFrameSize)
#else
#define RWHALFPIXEL // always d3d
#define STREAMPOS(str) ((str)->Type.memory.position)
#define STREAMFILE(str) ((str)->Type.file.fpFile)
#define HIERNODEINFO(hier) ((hier)->pNodeInfo)
#define HIERNODEID(hier, i) ((hier)->pNodeInfo[i].nodeID)
-#define HANIMFRAMES(anim) ((anim)->pFrames)
+#define HANIMFRAME(anim, i) ((RwUInt8*)(anim)->pFrames + (i)*(anim)->interpInfo->keyFrameSize)
#endif
#ifdef RWHALFPIXEL