diff options
-rw-r--r-- | src/game.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -189,7 +189,7 @@ typedef struct game_t { static inline float randf(void) { - return 2.f / RAND_MAX * rand() - 1.f; + return 2.f / (float)RAND_MAX * rand() - 1.f; } |
![]() |
index : sars/.git | |
Another silly gamelet, made for the 24-hour Blender 2020 IRC compo |
summaryrefslogtreecommitdiff |
-rw-r--r-- | src/game.c | 2 |
@@ -189,7 +189,7 @@ typedef struct game_t { static inline float randf(void) { - return 2.f / RAND_MAX * rand() - 1.f; + return 2.f / (float)RAND_MAX * rand() - 1.f; } |