diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-25 20:46:15 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-25 20:46:15 +0200 |
commit | fbca45239d54e9d2caa1dfca4c95947963091c69 (patch) | |
tree | 050569b5c634ebc45aaaa610f145d899549a371f /src/fakerw/fake.cpp | |
parent | helis done + cheats (diff) | |
parent | update librw (diff) | |
download | re3-fbca45239d54e9d2caa1dfca4c95947963091c69.tar re3-fbca45239d54e9d2caa1dfca4c95947963091c69.tar.gz re3-fbca45239d54e9d2caa1dfca4c95947963091c69.tar.bz2 re3-fbca45239d54e9d2caa1dfca4c95947963091c69.tar.lz re3-fbca45239d54e9d2caa1dfca4c95947963091c69.tar.xz re3-fbca45239d54e9d2caa1dfca4c95947963091c69.tar.zst re3-fbca45239d54e9d2caa1dfca4c95947963091c69.zip |
Diffstat (limited to 'src/fakerw/fake.cpp')
-rw-r--r-- | src/fakerw/fake.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fakerw/fake.cpp b/src/fakerw/fake.cpp index dca15dd0..c4ff2dd2 100644 --- a/src/fakerw/fake.cpp +++ b/src/fakerw/fake.cpp @@ -787,8 +787,8 @@ RwImage *RtBMPImageRead(const RwChar * imageName) { return rw::readBMP(imageName #include "rtquat.h" -RtQuat *RtQuatRotate(RtQuat * quat, const RwV3d * axis, RwReal angle, RwOpCombineType combineOp) { return quat->rotate(axis, angle/180.0f*3.14159f, (CombineOp)combineOp); } -void RtQuatConvertToMatrix(const RtQuat * const qpQuat, RwMatrix * const mpMatrix) { mpMatrix->rotate(*qpQuat, COMBINEREPLACE); } +RtQuat *RtQuatRotate(RtQuat * quat, const RwV3d * axis, RwReal angle, RwOpCombineType combineOp) { return (RtQuat*)((rw::Quat*)quat)->rotate(axis, angle/180.0f*3.14159f, (CombineOp)combineOp); } +void RtQuatConvertToMatrix(const RtQuat * const qpQuat, RwMatrix * const mpMatrix) { mpMatrix->rotate(*(rw::Quat*)qpQuat, COMBINEREPLACE); } #include "rtcharse.h" |