summaryrefslogtreecommitdiffstats
path: root/src/fakerw/fake.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-27 09:47:21 +0200
committeraap <aap@papnet.eu>2020-05-27 09:47:21 +0200
commit1af4edd43a902b127b4c4f0f5bdd6596c886214d (patch)
treece17052a1603f5b5ac060f3f7912d278e9277f66 /src/fakerw/fake.cpp
parentMT function for fakerw (diff)
downloadre3-1af4edd43a902b127b4c4f0f5bdd6596c886214d.tar
re3-1af4edd43a902b127b4c4f0f5bdd6596c886214d.tar.gz
re3-1af4edd43a902b127b4c4f0f5bdd6596c886214d.tar.bz2
re3-1af4edd43a902b127b4c4f0f5bdd6596c886214d.tar.lz
re3-1af4edd43a902b127b4c4f0f5bdd6596c886214d.tar.xz
re3-1af4edd43a902b127b4c4f0f5bdd6596c886214d.tar.zst
re3-1af4edd43a902b127b4c4f0f5bdd6596c886214d.zip
Diffstat (limited to 'src/fakerw/fake.cpp')
-rw-r--r--src/fakerw/fake.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fakerw/fake.cpp b/src/fakerw/fake.cpp
index 0c85728b..08d106f4 100644
--- a/src/fakerw/fake.cpp
+++ b/src/fakerw/fake.cpp
@@ -152,7 +152,7 @@ RwReal RwCameraGetNearClipPlane(const RwCamera *camera) { return camera->n
RwReal RwCameraGetFarClipPlane(const RwCamera *camera) { return camera->farPlane; }
RwCamera *RwCameraSetFogDistance(RwCamera *camera, RwReal fogDistance) { camera->fogPlane = fogDistance; return camera; }
RwReal RwCameraGetFogDistance(const RwCamera *camera) { return camera->fogPlane; }
-RwCamera *RwCameraGetCurrentCamera(void);
+RwCamera *RwCameraGetCurrentCamera(void) { return rw::engine->currentCamera; }
RwCameraProjection RwCameraGetProjection(const RwCamera *camera);
const RwV2d *RwCameraGetViewWindow(const RwCamera *camera) { return &camera->viewWindow; }
RwMatrix *RwCameraGetViewMatrix(RwCamera *camera) { return &camera->viewMatrix; }