summaryrefslogtreecommitdiffstats
path: root/src/fakerw/fake.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-25 15:56:20 +0200
committeraap <aap@papnet.eu>2020-04-25 15:56:20 +0200
commitea79cc4469dbe377e2da9e5019c1d709e95140d0 (patch)
tree825f07f2c985827d0732505e845605e53d3040b9 /src/fakerw/fake.cpp
parentfixed shooting target (diff)
downloadre3-ea79cc4469dbe377e2da9e5019c1d709e95140d0.tar
re3-ea79cc4469dbe377e2da9e5019c1d709e95140d0.tar.gz
re3-ea79cc4469dbe377e2da9e5019c1d709e95140d0.tar.bz2
re3-ea79cc4469dbe377e2da9e5019c1d709e95140d0.tar.lz
re3-ea79cc4469dbe377e2da9e5019c1d709e95140d0.tar.xz
re3-ea79cc4469dbe377e2da9e5019c1d709e95140d0.tar.zst
re3-ea79cc4469dbe377e2da9e5019c1d709e95140d0.zip
Diffstat (limited to 'src/fakerw/fake.cpp')
-rw-r--r--src/fakerw/fake.cpp4
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"