summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlesleyrs <[email protected]>2023-12-07 19:49:49 +0100
committerGitHub <[email protected]>2023-12-07 19:49:49 +0100
commit6b931801308d986bc81bc7eb6a989d99b4e52749 (patch)
treea601da9803f5636705aac8b9bf3b6da268ebcb43
parentd99617d084daeed629733419dd781f5f02422f0a (diff)
downloadraylib-6b931801308d986bc81bc7eb6a989d99b4e52749.tar.gz
raylib-6b931801308d986bc81bc7eb6a989d99b4e52749.zip
Fix for free camera mode (#3603)
* fix free and fp cam * revert
-rw-r--r--src/rcamera.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rcamera.h b/src/rcamera.h
index 0232dd48..3fe151fa 100644
--- a/src/rcamera.h
+++ b/src/rcamera.h
@@ -449,7 +449,7 @@ void UpdateCamera(Camera *camera, int mode)
bool moveInWorldPlane = ((mode == CAMERA_FIRST_PERSON) || (mode == CAMERA_THIRD_PERSON));
bool rotateAroundTarget = ((mode == CAMERA_THIRD_PERSON) || (mode == CAMERA_ORBITAL));
- bool lockView = ((mode == CAMERA_FIRST_PERSON) || (mode == CAMERA_THIRD_PERSON) || (mode == CAMERA_ORBITAL));
+ bool lockView = ((mode == CAMERA_FREE) || (mode == CAMERA_FIRST_PERSON) || (mode == CAMERA_THIRD_PERSON) || (mode == CAMERA_ORBITAL));
bool rotateUp = false;
if (mode == CAMERA_ORBITAL)