From 843d0b993a032f3ae99b448333c4337f83a7818d Mon Sep 17 00:00:00 2001 From: Tomas Fabrizio Orsi Date: Fri, 26 Apr 2024 00:10:21 -0300 Subject: [PATCH] FIX: Added CAMERA_CUSTOM check in `UpdateCamera(Camera *camera, int mode)` Signed-off-by: Tomas Fabrizio Orsi --- src/rcamera.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rcamera.h b/src/rcamera.h index 8e513ef1c6ba..9c19556c4a6e 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());