fix compilation on linux

This commit is contained in:
Crydsch 2022-07-18 18:08:26 +02:00
parent 35e225a85e
commit 95ae4eb8e1

View File

@ -439,7 +439,7 @@ void CameraViewBobbing(Camera3D* camera)
camera->target.y = camera->target.y - 0.25f * sinf((camera->swingCounter - 1) / CAMERA_FIRST_PERSON_STEP_TRIGONOMETRIC_DIVIDER) / CAMERA_FIRST_PERSON_STEP_DIVIDER; camera->target.y = camera->target.y - 0.25f * sinf((camera->swingCounter - 1) / CAMERA_FIRST_PERSON_STEP_TRIGONOMETRIC_DIVIDER) / CAMERA_FIRST_PERSON_STEP_DIVIDER;
// Update counter for next frame // Update counter for next frame
camera->swingCounter %= INT_MAX; // Counter must be positive camera->swingCounter %= 2147483647 /* INT_MAX */; // Counter must be positive
camera->swingCounter++; camera->swingCounter++;
} }
} }