Sfoglia il codice sorgente

FIX: Added CAMERA_CUSTOM check in `UpdateCamera(Camera *camera, int mode)` (#3938)

Signed-off-by: Tomas Fabrizio Orsi <[email protected]>
Tomas Fabrizio Orsi 1 anno fa
parent
commit
10e702facd
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/rcamera.h

+ 2 - 1
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());