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

Signed-off-by: Tomas Fabrizio Orsi <torsi@fi.uba.ar>
This commit is contained in:
Tomas Fabrizio Orsi
2024-04-28 15:28:19 -03:00
committed by GitHub
parent e47ebec661
commit 10e702facd

View File

@@ -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 lockView = ((mode == CAMERA_FREE) || (mode == CAMERA_FIRST_PERSON) || (mode == CAMERA_THIRD_PERSON) || (mode == CAMERA_ORBITAL));
bool rotateUp = false; bool rotateUp = false;
if (mode == CAMERA_ORBITAL) if (mode == CAMERA_CUSTOM) {}
else if (mode == CAMERA_ORBITAL)
{ {
// Orbital can just orbit // Orbital can just orbit
Matrix rotation = MatrixRotate(GetCameraUp(camera), CAMERA_ORBITAL_SPEED*GetFrameTime()); Matrix rotation = MatrixRotate(GetCameraUp(camera), CAMERA_ORBITAL_SPEED*GetFrameTime());