Build with -Wfloat-conversion + fix all warnings

This commit is contained in:
Anonymous Maarten authored and GitHub committed 2024-06-03 21:33:29 +00:00
1 parent 17c459e384
commit a919774fe4
38 files changed
+199 -203

No files matched your search

+1 -1
View File
@@ -1492,7 +1492,7 @@ int main(int argc, char *argv[])
positions[i].h = (float)sprite_h;
velocities[i].x = 0.0f;
velocities[i].y = 0.0f;
while (!velocities[i].x || !velocities[i].y) {
while (velocities[i].x == 0.f || velocities[i].y == 0.f) {
velocities[i].x = (float)((rand() % (2 + 1)) - 1);
velocities[i].y = (float)((rand() % (2 + 1)) - 1);
}