summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorTomas Fabrizio Orsi <[email protected]>2024-04-28 15:28:19 -0300
committerGitHub <[email protected]>2024-04-28 20:28:19 +0200
commit10e702facd84f7558947b4d6780f1b758405ab13 (patch)
treef2dc917833a58de014dbe4d073fbb5c4b7264154 /src
parente47ebec66134800e734710038ea4e5f070f3ef06 (diff)
downloadraylib-10e702facd84f7558947b4d6780f1b758405ab13.tar.gz
raylib-10e702facd84f7558947b4d6780f1b758405ab13.zip
FIX: Added CAMERA_CUSTOM check in `UpdateCamera(Camera *camera, int mode)` (#3938)
Signed-off-by: Tomas Fabrizio Orsi <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/rcamera.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rcamera.h b/src/rcamera.h
index 8e513ef1..9c19556c 100644
--- a/src/rcamera.h
+++ b/src/rcamera.h
@@ -444,7 +444,8 @@ void UpdateCamera(Camera *camera, int mode)
bool lockView = ((mode == CAMERA_FREE) || (mode == CAMERA_FIRST_PERSON) || (mode == CAMERA_THIRD_PERSON) || (mode == CAMERA_ORBITAL));
bool rotateUp = false;
- if (mode == CAMERA_ORBITAL)
+ if (mode == CAMERA_CUSTOM) {}
+ else if (mode == CAMERA_ORBITAL)
{
// Orbital can just orbit
Matrix rotation = MatrixRotate(GetCameraUp(camera), CAMERA_ORBITAL_SPEED*GetFrameTime());