diff options
| author | Ray <[email protected]> | 2022-04-25 19:35:19 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-04-25 19:35:19 +0200 |
| commit | 6e722d416b3f1ab36cc9ea1defb958210e093ee9 (patch) | |
| tree | 7930caf53c461644ed1e46e49e347ac0007951a8 /src | |
| parent | e543922055c1bf22b8dc9d3062481d26536c54e5 (diff) | |
| download | raylib-6e722d416b3f1ab36cc9ea1defb958210e093ee9.tar.gz raylib-6e722d416b3f1ab36cc9ea1defb958210e093ee9.zip | |
Update rcore.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/rcore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rcore.c b/src/rcore.c index 7823e311..30100c28 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -4841,7 +4841,7 @@ void WaitTime(float ms) double currentTime = 0.0; // Partial busy wait loop (only a fraction of the total wait time) - while ((currentTime - previousTime) < busyWait/1000.0f) currentTime = GetTime(); + while ((currentTime - previousTime) < (busyWait/1000.0f)) currentTime = GetTime(); #endif #endif } @@ -6473,7 +6473,7 @@ static void InitGamepad(void) { sprintf(gamepadDev, "%s%i", DEFAULT_GAMEPAD_DEV, i); - if ((CORE.Input.Gamepad.streamId[i] = open(gamepadDev, O_RDONLY|O_NONBLOCK)) < 0) + if ((CORE.Input.Gamepad.streamId[i] = open(gamepadDev, O_RDONLY | O_NONBLOCK)) < 0) { // NOTE: Only show message for first gamepad if (i == 0) TRACELOG(LOG_WARNING, "RPI: Failed to open Gamepad device, no gamepad available"); |
