diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-25 11:15:29 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-25 11:15:29 +0200 |
commit | 34ef766c67b50b6abf4a05a77521e2393b116cca (patch) | |
tree | 3005e50fdcd82c3a9dc604fdcd89e694d5f621b8 /src/core/common.h | |
parent | undo (diff) | |
parent | disable mouse steering by default (diff) | |
download | re3-34ef766c67b50b6abf4a05a77521e2393b116cca.tar re3-34ef766c67b50b6abf4a05a77521e2393b116cca.tar.gz re3-34ef766c67b50b6abf4a05a77521e2393b116cca.tar.bz2 re3-34ef766c67b50b6abf4a05a77521e2393b116cca.tar.lz re3-34ef766c67b50b6abf4a05a77521e2393b116cca.tar.xz re3-34ef766c67b50b6abf4a05a77521e2393b116cca.tar.zst re3-34ef766c67b50b6abf4a05a77521e2393b116cca.zip |
Diffstat (limited to 'src/core/common.h')
-rw-r--r-- | src/core/common.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/common.h b/src/core/common.h index 46b4d03a..8b057efa 100644 --- a/src/core/common.h +++ b/src/core/common.h @@ -27,9 +27,15 @@ #ifdef LIBRW #define STREAMPOS(str) ((str)->tell()) #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) #else #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) #endif #define rwVENDORID_ROCKSTAR 0x0253F2 @@ -63,6 +69,11 @@ typedef uint16_t wchar; #include "config.h" +#ifdef PED_SKIN +#include <rphanim.h> +#include <rpskin.h> +#endif + #define ALIGNPTR(p) (void*)((((uintptr)(void*)p) + sizeof(void*)-1) & ~(sizeof(void*)-1)) // PDP-10 like byte functions |